• Resolved chouosara

    (@chouosara)


    AFTER AN unwanted and not fair LOCKED POST I WILL SAY THE SAME MESSAGE DIFFERENTLY….

    Hello i need help to use your plugin i’m currently using THE GDPR COOKIE COMPLIANCE AND THE premium add-on(I DON’T NEED HELP FOR THE ADD-ON)😉

    So my first question is how can i add the code of the google analytics on the third party in the “HEAD” in the gdpr cookie compliance… my code is :

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

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

    Same question for ads to be le on/off for user setting for ads and google analytics on the gdpr cookie compliance.

    Sorry i’m not so good with english 🙂

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @chouosara,

    Thanks for using our plugins.

    You can insert the script to the plugin settings (Settings -> GDPR Cookie -> 3rd party cookies) head section. I’ve checked your website and it seems you’ve console error because of wrong apostrophe characters. Please copy the code snippet from your Google Analytics account, and paste it directly to the plugin settings.
    Another issue is that you’ve added some PHP hooks with wrong apostrophe characters as well, or these are just pasted directly to the plugin settings which is wrong. If you want to use PHP hooks like “add_action(‘moove_gdpr_third_party_header_assets’,’moove_gdpr_third_party_header_assets’)” you should add the correct code to your functions.php and not in the plugin settings.
    In conclusion, please remove all the code snippets from the 3rd party section, and paste just the analytics code snippet. Also, please ensure you have no other third party plugins or code snippets hardcoded to your theme, if so these should be removed and GA script added to GDPR plugin.

    My suggestion is to ask your developer to check the code snippets and third party plugins for you.

    I hope this helps.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Help for the gdpr plugin insert google analytics’ is closed to new replies.