Home Forums Themes Support Claue Problem with Google Analytic

Topic Resolution: Resolved
Viewing 1 reply thread
  • Author
    Posts
    • #11058

      Hi,

      I put the code in CLAUE but nothing append , no dialog with Google, can I use another way ?

      Code in claue in custom JS CODE :

      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments)};
      gtag(‘js’, new Date());

      gtag(‘config’, ‘UA-xxxxxxxx-x’);

      Thanks

       

    • #11059

      Hi Stephane,

      Sorry because inconvenience.

      Now google analytics update the tracking code so user have to add full code to tracking

      You have to use plugin https://wordpress.org/plugins/insert-headers-and-footers/

      to add full tracking code like this

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

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 1 reply thread

You must be logged in to reply to this topic.