Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2772544
how to add google analytic code
Closed

Comments

  • kurniaikhwan started the conversation

    hello, 

    where to put this google analytic code, thanks.

    <!-- Global site tag (gtag.js) - Google Analytics -->

    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-FT6XCxxxxxx');
    </script>


  •  2,699
    PenciDesign replied

    Hi,

    Your google analytics code is missing. You need to use:


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

    And put it to Customize > Footer Options > Google Analytics Code 

    or Customize > Logo & Header > General > Add Custom Code Inside <head> Tag


    Best Regards,

    PenciDesign