Brandford

Google Analytics

Jul 7th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.             (function (i, s, o, g, r, a, m) {
  3.                 i['GoogleAnalyticsObject'] = r;
  4.                 i[r] = i[r] || function () {
  5.                     (i[r].q = i[r].q || []).push(arguments)
  6.                 }, i[r].l = 1 * new Date();
  7.                 a = s.createElement(o),
  8.                         m = s.getElementsByTagName(o)[0];
  9.                 a.async = 1;
  10.                 a.src = g;
  11.                 m.parentNode.insertBefore(a, m)
  12.             })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
  13.  
  14.             ga('create', 'UA-101231176-1', 'auto');
  15.             ga('send', 'pageview');
  16.  
  17.         </script>
Add Comment
Please, Sign In to add comment