• Resolved cropshare

    (@cropshare)


    Hi,

    I have installed the Google Site Kit on my wordpress page using the plugin by Google and following the mentioned steps for installing Search Console, Ads, Analytics, PageSpeed Insights and Tag Manager without pasting any code, just by following the installation steps.

    Previously, I am already using the CookieYes Plugin and now I want to get the user’s consent when accessing the site for the usage of Google Site Kit.

    In the web app of CookieYes I already activated the toggle for Support GCM but deactivated “Allow Google tags to fire before consent”.

    The theme I’m using is FotaWP and it does not have a header.php file so I edited the header.php file under wp-includes/theme-compat/header-php. There was no code for the Google Tag Manager but I pasted your recommended CookieYes GTM template above the wp_head() function. Note that there is no Google Tag Manager script and CookieYes script within this header.php.

    Now I’m really confused if this works corretly. When trying to test it via Tag Assistent it can not connect to the site. What am I doing wrong? Should I switch on the toggle for “Allow Google tags to fire before consent”? Then the order of the scripts is not important, right?

    Thank you in advance

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @cropshare,

    Greetings from CookieYes!

    We couldn’t find the custom script added to your site. Please ensure you have followed this documentation to implement GCM while using the CookieYes plugin.

    Thread Starter cropshare

    (@cropshare)

    Hi CookieYes Team,

    thank you for your reply!

    Then I’m not sure the code has been pasted properly. As I wrote there is no code regarding Google Tag Manager script or CookieYes script within my header.php file under wp-includes/theme-compat/header-php.
    Probably it is the wrong header.php. Is there any other file where I can paste the CookieYes GTM template?

    Thank you in advance

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @cropshare,

    Please find your active theme’s header from Appearance > Theme file editor Theme Header.

    Thread Starter cropshare

    (@cropshare)

    Hi @cookieyesteam ,
    in my case, the Theme file editor is located at Tools -> Theme file editor
    Unfortunately, there is no header.php there, as I wrote it already


    Link to image uploaded on imgbb: https://ibb.co/9hHLj4b

    • This reply was modified 4 months, 1 week ago by cropshare.
    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @cropshare,

    Please try?the code snippet below by copying it to your site’s active themes functions.php file.

    add_action('wp_head', 'cky_add_script_to_head', -1);
    function cky_add_script_to_head() {
    ?>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag() {
    dataLayer.push(arguments);
    }
    gtag("consent", "default", {
    ad_storage: "denied",
    ad_user_data: "denied",
    ad_personalization: "denied",
    analytics_storage: "denied",
    functionality_storage: "denied",
    personalization_storage: "denied",
    security_storage: "granted",
    wait_for_update: 2000,
    });
    gtag("set", "ads_data_redaction", true);
    gtag("set", "url_passthrough", true);
    </script>
    <?php
    }
    Thread Starter cropshare

    (@cropshare)

    Hi @cookieyesteam ,

    I have added it to the functions.php and now I want to test if everything works. Tag assistant could now conneted.

    The scanner fo CookieYes scanned the website and found the two cookies for analysis: _ga_ and _ga_* for Google Analytics.
    Is this already enough? How can I get a proof, if it works fine?

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @cropshare,

    Please refer to this documentation to check if Google Consent Mode is properly implemented.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @cropshare,

    This thread has been inactive for a bit, so we are going to mark it as resolved now. Please feel free to open a new thread or follow-up if you have any further questions or still need help.

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