Sha256: db7497949fa271e95f7ec90715389ccbcabda7fc6134d296a41b0d46e39abc6f

Contents?: true

Size: 1.58 KB

Versions: 11

Compression:

Stored size: 1.58 KB

Contents

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>in_http_mixpanel example</title>
</head>
<body>
  <ul>
    <li><button data-event='event1' data-value="1">Event1</button></li>
    <li><button data-event='event2' data-value="2">Event2</button></li>
    <li><button data-event='event3' data-value="3">Event3</button></li>
  </ul>
<script type="text/javascript">
  (function(c,a){window.mixpanel=a;var b,d,h,e;b=c.createElement("script");
  b.type="text/javascript";b.async=!0;b.src=("https:"===c.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';d=c.getElementsByTagName("script")[0];d.parentNode.insertBefore(b,d);a._i=[];a.init=function(b,c,f){function d(a,b){var c=b.split(".");2==c.length&&(a=a[c[0]],b=c[1]);a[b]=function(){a.push([b].concat(Array.prototype.slice.call(arguments,0)))}}var g=a;"undefined"!==typeof f?g=a[f]=[]:f="mixpanel";g.people=g.people||[];h=['disable','track','track_pageview','track_links','track_forms','register','register_once','unregister','identify','alias','name_tag','set_config','people.set','people.set_once','people.increment','people.track_charge','people.append'];for(e=0;e<h.length;e++)d(g,h[e]);a._i.push([b,c,f])};a.__SV=1.2;})(document,window.mixpanel||[]);
  mixpanel.init("dummy", {
    api_host: '//0.0.0.0:5000',
    debug: true
  });
</script>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
$(function () {
  $('button').on('click', function () {
    var evt = $(this).data('event');
    var value = $(this).data('value');
    mixpanel.track(evt, { value: value });
  });
});
</script>
</body>
</html>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
fluent-plugin-mixpanel-0.1.0 example/index.html
fluent-plugin-mixpanel-enchanced-0.0.13 example/index.html
fluent-plugin-mixpanel-enchanced-0.0.12 example/index.html
fluent-plugin-mixpanel-enchanced-0.0.11 example/index.html
fluent-plugin-mixpanel-enchanced-0.0.10 example/index.html
fluent-plugin-mixpanel-0.0.9 example/index.html
fluent-plugin-mixpanel-0.0.8 example/index.html
fluent-plugin-mixpanel-0.0.7 example/index.html
fluent-plugin-mixpanel-0.0.6 example/index.html
fluent-plugin-mixpanel-0.0.5 example/index.html
fluent-plugin-mixpanel-0.0.4 example/index.html