JAVASCRIPT 80
Gtag.js - Google Analytics Guest on 28th May 2020 01:20:44 AM
  1. <!-- Global site tag (gtag.js) - Google Analytics -->
  2. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-ID"></script>
  3. <script>
  4.   window.dataLayer = window.dataLayer || [];
  5.   function gtag(){dataLayer.push(arguments);}
  6.   gtag('js', new Date());
  7.  
  8.   gtag('config', 'UA-number');
  9.   gtag('config', 'GA_MEASUREMENT_ID_1', {
  10.     'linker': {
  11.       'domains': ['my-domain.com', 'my-domain.net']
  12.     }
  13.   });
  14. </script>

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.