Guest User

Untitled

a guest
Feb 18th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <!-- Global site tag (gtag.js) - Google Analytics -->
  2. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-27898392-1"></script>
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. function gtag() { dataLayer.push(arguments); }
  6. gtag('js', new Date());
  7. gtag('config', 'UA-27898392-1');
  8. </script>
  9.  
  10. <!-- Google Analytics -->
  11. <script>
  12. window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
  13. ga('create', 'UA-27898392-1', 'auto');
  14. ga('set', 'userId', '123456');
  15. //Custom-User-ID - index 1
  16. ga('set', 'dimension1', '123456');
  17. //Custom-User-Name - index 2
  18. ga('set', 'dimension2', 'jerome');
  19. //Custom-User-Email - index 3
  20. ga('set', 'dimension3', 'haijerome@gmail.com');
  21. //Custom-User-Customer-ID - index 4
  22. ga('set', 'dimension4', '123456');
  23. //Custom-User-Customer-Name - index 5
  24. ga('set', 'dimension5', 'Test');
  25. ga('send', 'pageview');
  26. </script>
  27. <script async src='https://www.google-analytics.com/analytics.js'></script>
  28. <!-- End Google Analytics -->
Add Comment
Please, Sign In to add comment