Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5230

Modifiy tracking code for compatibility with Universal Google Analytics

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.8, 4.0 alpha
    • None
    • None
    • None

      This modification seems to be optional, but the new tracking code gives access to more tracking possibilities.
      https://developers.google.com/analytics/devguides/collection/upgrade/guide

          [CMS-5230] Modifiy tracking code for compatibility with Universal Google Analytics

          Is it possible to have this issue please?

          Frederic Ravetier (Inactive) added a comment - Is it possible to have this issue please?

          Laurence Aumeunier added a comment - - edited

          Code for Universal Analytics

          <!-- Google Analytics -->
          <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
          
          ga('create', 'UA-XXXX-Y', 'auto');  // Replace with your property ID.
          ga('send', 'pageview');
          
          </script>
          <!-- End Google Analytics -->
          

          Laurence Aumeunier added a comment - - edited Code for Universal Analytics <!-- Google Analytics --> <script> (function(i,s,o,g,r,a,m){i[ 'GoogleAnalyticsObject' ]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document, 'script' , '//www.google-analytics.com/analytics.js' , 'ga' ); ga( 'create' , 'UA-XXXX-Y' , 'auto' ); // Replace with your property ID. ga( 'send' , 'pageview' ); </script> <!-- End Google Analytics -->

            lbouchet Loïc Bouchet
            jbabadie Jean-Baptiste ABADIE
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: