Skip to content

Instantly share code, notes, and snippets.

@toddmotto
Created September 19, 2016 19:41
Show Gist options
  • Save toddmotto/131b89c2f8dcdb3654c154b68e5ae2ed to your computer and use it in GitHub Desktop.
Save toddmotto/131b89c2f8dcdb3654c154b68e5ae2ed to your computer and use it in GitHub Desktop.
Angular function arguments
(function(A,n,g,u,l,a,r){A.GoogleAnalyticsObject=r;A[l]=A[l]||function(){
(A[l].q=A[l].q||[]).push(arguments)},A[l].l=1*new Date();a=n.createElement(g),
r=n.getElementsByTagName(g)[0];a.async=1;a.src=u;r.parentNode.insertBefore(a,r)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXXXX-XX', 'auto');
ga('send', 'pageview');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment