Support Forum Support Forum GDPR Cookie Compliance Script 2ª Translate

Topic Resolution: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Avataragustin
    March 12, 2020 @ 7:53 pm

    Good evening!
    thanks for your replay.
    I’m trying to translate the consult I made you.
    I have anonymized IP for universal analytics in Tag Manager.

    In your plugin, I have put this code in the Body Section of your plugin, I’m writting bellow:

    <!– Google Tag Manager (noscript) –>
    <noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-XXXX&#8221;
    height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
    <!– End Google Tag Manager (noscript) –>

    This script was put in plugin called “insert headers and footers” that I have installed.
    Should I remove this script in plugin I have called “insert headers and footers” if I have put in your plugin GDPR cookie compliance?
    Note:I have put GTM-XXXX with my container ID.

    1. Head Section: I’d have to put this code I’m writting bellow?:

    A) <!– Google Tag Manager –>
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
    new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
    https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,’script’,’dataLayer’,’GTM-XXXX’);</script>
    <!– End Google Tag Manager –>

    This script was put in plugin insert headers and footers that I had installed

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

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

    This scripts is ID tracking code in universal analytics

    I’d have to replace GTM-XXXX with my container ID.

    thanks

    Moove AgencyMoove Agency
    March 15, 2020 @ 10:05 am

    Hi agustin,

    Thanks for using our plugins.

    You have to copy the scripts from the “insert headers and footers” plugin and move them to GDPR Cookie Compliance plugin.
    Please navigate to GDPR Cookie Compliance -> 3rd party section and the first thing should be to enable the 3rd party section (first toggle should be green -> enabled). Scroll down to script section, and paste your script to the relevant sections as described below:

    1. Head section:

    <!– Google Tag Manager –>
    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
    new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
    ‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,’script’,’dataLayer’,’GTM-XXXX’);</script>
    <!– End Google Tag Manager –>
    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-XXX XXXXXX-X”></script>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());
    
    gtag(‘config’, ‘UA-XXXXXXXXX-X’);
    </script>

    2. Body section:

    <!– Google Tag Manager (noscript) –>
    <noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-XXXX”
    height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
    <!– End Google Tag Manager (noscript) –>

    3. Next steps
    a. Save the settings with the configuration above
    b. You can remove the “insert headers and footers” plugins as it’s not needed in this case
    c. Test your implementation by visiting the front page, accepting cookies and check the google analytics account.

    Hope this helps.

    Avataragustin
    March 19, 2020 @ 7:35 pm

    Good evening!
    Sorry not to have written before, please let me to thank you for your great support and huge help.
    I did what you indicated. So I put the two scripts that you had told me in 3rd party cookies -in head section- and the other script of tag manager in 3rd party cookies -body section.
    I saved the settings and eliminated the scritps I had put in other plugin, so now only the scripts are put in your plugin.
    I tested its implementation by visiting the homepage and accepting the cookies.

    The plugin was configured as the OPTION A (the 3rd party cookies turn ON and default status disabled)
    No cookies are stored on users’ computers until the user accepts cookies:
    Example 1 https://wordpress.org/plugins/gdpr-cookie-compliance/

    1.After, I reviewed in chrome browser, more tools, developer tools -application- the cookies are detailed (one of these,moove_gdpr_popup).
    2.Then I eliminated navigational data and cookies in browser and the cookies are not detailed.
    3.In incognito mode the cookies are not detailed and showen.

    Finally. I’d like to inclose the front-end One page layout so I should to put this code /#gdpr_cookie_modal at the end of it all in file function.php of the active theme.? (I’ve autoptimize).
    thanks very much for your help.

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