Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. /* Stock GA code */
  2.  
  3. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  4. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  5. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  6. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  7.  
  8. ga('create', 'UA-55712837-2', 'auto');
  9.  
  10. /* If the browser_id hasn't already been set... */
  11. if (document.cookie.indexOf('browser_uuid_set=1') == -1) {
  12.  
  13. /* Generate a UUID, and assign it to the browser_id custom dimension */
  14. ga('set', 'dimension1', uuid.v4());
  15.  
  16. /* Set a cookie so we won't override the UUID we just set */
  17. document.cookie = 'browser_uuid_set=1; expires=Fri, 01 Jan 2100 12:00:00 UTC; domain=.arem.us; path=/';
  18. }
  19.  
  20. /* Assign a timestamp to the utc_millisecs custom dimension */
  21. ga('set', 'dimension2', new Date().getTime());
  22.  
  23. /* Send a pageview */
  24. ga('send', 'pageview');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement