Skip to content

Instantly share code, notes, and snippets.

@ryw
Created July 22, 2012 19:08
Show Gist options
  • Save ryw/3160735 to your computer and use it in GitHub Desktop.
Save ryw/3160735 to your computer and use it in GitHub Desktop.
Sample Engagement.io javascript implementation code
<script type="text/javascript">
var _eioq = _eioq || [];
_eioq.push(['setApp', 'dfX4Xnqt3P2xpsaxqhKM']);
_eioq.push(['setUser', '[email protected]']);
_eioq.push(['trackEvent', 'visit']);
(function() {
var eio = document.createElement('script'); eio.type = 'text/javascript';
eio.src = 'http://app.engagement.io/eio.js') %>';
eio.async = true;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(eio, s);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment