Skip to content

Instantly share code, notes, and snippets.

@stephenlb
Created November 22, 2013 19:39
Show Gist options
  • Save stephenlb/7605609 to your computer and use it in GitHub Desktop.
Save stephenlb/7605609 to your computer and use it in GitHub Desktop.
We finally integrated a full Funnel Tracking System that allows us to track Revenue Generated per External Marketing Project. Please use the following JavaScript Snippet on all Projects going forward:
<script>
piAId='29622';
piCId='23596';
(function(){
function async_load(){
var s=document.createElement('script');s.type='text/javascript';
s.src=('https:'==document.location.protocol?'https://pi':'http://cdn')
+'.pardot.com/pd.js';
var c=document.getElementsByTagName('script')[0];
c.parentNode.insertBefore(s,c);}
if(window.attachEvent){window.attachEvent('onload',async_load);}
else{window.addEventListener('load',async_load,false);}})();
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create','UA-16927549-1');
ga('send','pageview');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment