Uploaded image for project: 'Web Analytics'
  1. Web Analytics
  2. WA-7

Analytics is changing tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 2.10.0
    • None
    • None

      Analytics is changing from analytics.js to gtag.js

      Also the code may have change. 

       

      This is an example of the new code : 

      <!-- Global site tag (gtag.js) - Google Analytics -->
      <script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxx-1"></script>
      <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());  gtag('config', 'UA-xxxxxxx-1');
      </script>
       

            Unassigned Unassigned
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: