• Resolved jarr24

    (@jarr24)


    I would like to add Google Analytics script to Analityc category. What is the correct way to do this?

    Adding google analitycs script “(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){ …”
    to “Head scripts” textarea doesn’t work.

    Thank you in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @jarr24,

    Greetings from Webtoffee!

    We didn’t recognize the script given in your thread. So, We request you to check in the Analytics category’s head script section you have added the right script from Google including all the tags properly. Also, try to add the script to the body section and see if it works.

    Thread Starter jarr24

    (@jarr24)

    Whole script from google:

    (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’,’https://www.google-analytics.com/analytics.js’,’ga’);

    ga(‘create’, ‘UA-123456789-1’, ‘auto’);
    ga(‘send’, ‘pageview’);

    Plugin Author WebToffee

    (@webtoffee)

    Hi @jarr24,

    Without Script tag blocking and unblocking won’t work. So we request you to provide an opening and closing Script tag ( <script>, </script> ) at the beginning and end of the Google script, while pasting the code into the category head script section.

    hi,

    now it’s different with cookieyes, there’s no category script head section….

    i’ don’t know where to put the script…

    Marlo

    (@awstudio)

    Hi,
    Could you find where to add the script, I do not see either.
    Thanks

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @awstudio,

    If you have a new question, start a new topic in the support forum. Read this forum thread to learn more about where to add the scripts in the revamped version.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to add Google analytics to Cookie category?’ is closed to new replies.