Google Analytics Code

Home Forums WordPress Theme Support BfastMag Pro Google Analytics Code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8398
    Gokhan
    Member

    Hello,

    What does this exactly mean?
    “Enter Google Analytics Code or other Scripts without <script> </script> tags”

    Because Google gives either:

    UA-#########-#

    or this:

    <!– Global Site Tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-107076050-1″></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments)};
    gtag(‘js’, new Date());

    gtag(‘config’, ‘UA-########-1’);
    </script>

    Which one should we enter?

    #8406
    Raja CRN
    Keymaster

    Just enter this code,

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

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

Viewing 2 posts - 1 through 2 (of 2 total)

Only Verified Customer of this Theme Can post reply to this Support Topic! .