Sha256: 081e02d57c813a168e6d78c25ee3e87aa593fee7001e4069e71de514f9dcb8f4

Contents?: true

Size: 1.59 KB

Versions: 2

Compression:

Stored size: 1.59 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: 'http://0.0.0.0:8888',
    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

2 entries across 2 versions & 1 rubygems

Version Path
fluent-plugin-mixpanel-0.0.3 example/index.html
fluent-plugin-mixpanel-0.0.2 example/index.html