Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1131017

    Hello,
    I would like to add this Google Analytics code to my header.php. Where in the header can I put it? Just before the tag </head>
    Thanks Nora

    THis is the code:
    <!– Global site tag (gtag.js) – Google Analytics –>

    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-143592412-1″></script&gt;

    <script>

    window.dataLayer = window.dataLayer || [];

    function gtag(){dataLayer.push(arguments);}

    gtag(‘js’, new Date());

    gtag(‘config’, ‘UA-143592412-1’);

    </script>

    #1131061

    Hey NoraGTS,

    Yes! Just before the closing header tag.

    Best regards,
    Jordan Shannon

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.