Skip to content

Instantly share code, notes, and snippets.

@Sitebase
Created February 3, 2015 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sitebase/355fc595129862cb245f to your computer and use it in GitHub Desktop.
Save Sitebase/355fc595129862cb245f to your computer and use it in GitHub Desktop.
Example ambassador tracking script
<script>
(function(i,s,o,g,r,a,m){i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)};
a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=a.defer=1;a.src=g;
m.parentNode.insertBefore(a,m)})(window,document,'script','//api.bubobox.com/tracker.js','_bbq');
_bbq('init', { user_id: 1, segment: 'website' });
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment