Find The Right SEO Service For Your Business

We cover the full spectrum of SEO services from local SEO to international SEO. Choose the SEO service right for you and call us today for a free confidential chat about your digital marketing.

SEO

SEO Services →

Digital Marketing Service →

Digital PR Service →

Ecommerce SEO →

Organic SEO Services →

Image Optimisation →

URL Structure Optimisation →

Internal Linking →

Page Speed Optimisation →

User Experience Optimisation →

Free SEO Audit

Find out why your website isn't ranking on the top of Google and what actionable steps you can take, with our free no obligation SEO audit.

Free SEO Audit →

Advanced Mode Set Up Google Consent V2

By Paul - SEO Consultant
Categories: WordPress | Blog

Google Consent Mode v2 Integration with CookieYes WordPress Plugin

Ensuring user privacy while maximizing ad performance is a crucial balance for any website owner. Google Consent Mode v2 offers a sophisticated solution that allows websites to respect user consent preferences while still optimizing ad functionalities. When paired with the CookieYes WordPress Plugin, this integration becomes a seamless process, enabling website owners to harness the power of Google’s advertising services without compromising on privacy.

You can watch the video, click the official link or read our quick guide. Google Consent Mode v2 using the CookieYes WordPress plugin, a process that not only enhances compliance with privacy laws but also ensures that your ad campaigns continue to perform at their best.

Understanding Google Consent Mode v2

Google Consent Mode v2 is a powerful tool designed to align website operations with privacy regulations by controlling how and when Google’s advertising cookies are activated based on user consent. This mode introduces new parameters that enhance user control over data sharing and ad personalization, making it a vital addition to any website that prioritizes user privacy.

  • ad_user_data: This parameter indicates whether a user has granted or denied consent for their data to be shared with Google’s ad services. If consent is denied, no identifiable user data will be collected by Google ads, ensuring that user privacy is respected.

  • ad_personalization: This parameter controls whether a user has opted into ad personalization and remarketing. If the user denies consent, personalized ad functionalities are disabled, leading to a more privacy-conscious user experience.

Setting Up Google Consent Mode v2 in CookieYes

Integrating Google Consent Mode v2 with the CookieYes WordPress plugin is straightforward, enabling you to manage user consent effectively across your site.

Step 1: Enabling GCM Support in CookieYes

To begin, ensure that the Google Consent Mode (GCM) support feature is activated within your CookieYes platform. By default, this feature should be enabled, but it’s always good to verify:

  • Log in to your CookieYes web app account.
  • Navigate to the CookieYes Dashboard and select Advanced Settings.
  • In the Advanced Settings, find the “Support GCM” option and ensure the toggle is switched on.

Activating this feature is crucial as it ensures that the basic functionalities of Google Consent Mode are implemented on your website, allowing only the necessary tags to fire based on user consent. This step is foundational to the entire integration process, ensuring that your website respects user preferences from the moment they interact with your site.

Step 2: Integrating Google Consent Mode v2

Once GCM support is enabled, you have two primary methods to integrate Google Consent Mode v2 with the CookieYes plugin: through the plugin interface or by using a custom consent mode script.

Method 1: Using the CookieYes Plugin Interface

This method is recommended for most users due to its simplicity and ease of use. The CookieYes plugin interface is designed to facilitate the integration of Google Consent Mode v2 without requiring extensive technical knowledge.

  1. Remove Existing Custom Scripts: If you’ve previously implemented GCM using a custom script, remove it to prevent conflicts. This ensures that the new setup will function correctly without any legacy code interference.

  2. Activate GCM:

    • Log in to your WordPress account.
    • Go to CookieYes Dashboard > Google Consent Mode (GCM).
    • Toggle the button to enable GCM within the plugin.
    • Confirm activation by clicking the “Enable GCM” button in the Heads Up! modal.
  3. Configure GCM Settings: The next step involves configuring the default consent settings, which determine how your site’s tags behave before the user consents:

    • By default, necessary cookies are set to “Granted,” while non-necessary categories are set to “Denied.”
    • Adjust these settings according to your needs, including setting the geographical region using ISO 3166-2 codes.
  4. Add the Google Tag Manager (GTM) Script:

    • Ensure that the GTM script is correctly positioned below the wp_head() function in your site’s header.
    • This placement is crucial for the correct execution of Google’s tags and ensures that they only fire based on the user’s consent status.

Method 2: Using a Custom Consent Mode Script

For those who prefer more control over the integration process, using a custom consent mode script is an alternative method. This approach allows you to directly manipulate the consent settings and tag behavior through script modifications.

  1. Add Custom Script to Website Header:

    • Copy the provided script and paste it directly above the wp_head() function in your website’s header. This script sets the default consent states for various Google services, ensuring that only allowed tags are fired based on user preferences.
  2. Insert GTM Script:

    • Position the GTM script directly below the custom script. This order is essential to ensure that the tags are loaded correctly and that the consent settings are respected.
  3. Verify Script Order:

    • Double-check that the scripts are in the correct order: custom consent mode script first, followed by the GTM script, and then the CookieYes script. This sequence is vital for the proper functionality of Google Consent Mode on your site.

Verifying the Integration

After setting up Google Consent Mode v2, it’s important to verify that everything is working as expected.

  • Go to the Advanced Settings in the CookieYes Dashboard.
  • Click the Check Now button to verify the GCM status. If configured correctly, you’ll see a success message stating, “No error detected.”
  • For further validation, refer to the Verification Documentation provided by CookieYes.

This verification step is critical to ensure that your integration is functioning correctly and that user consent is being managed according to the latest privacy standards. Regular checks will help you maintain compliance and optimize the performance of your ad campaigns.

Mapping Google Consent Types with CookieYes

CookieYes CMP simplifies the integration by mapping Google’s seven consent types into four manageable categories:

Google Consent Type CookieYes Consent Type Purpose
ad_storage advertisement To enable advertisement cookies.
analytics_storage analytics To enable analytics cookies.
functionality_storage functional To enable functional cookies.
personalization_storage functional To enable functional cookies for personalization.
security_storage necessary To enable necessary cookies for security.
ad_user_data advertisement To control the sharing of user data with Google.
ad_personalization advertisement To control ad personalization and remarketing.

This mapping ensures that your site remains compliant while still benefiting from Google’s robust advertising ecosystem.

Achieving Compliance and Optimising Ad Performance

By completing these steps, your website is now equipped with Google Consent Mode v2, integrated seamlessly through the CookieYes WordPress plugin. This setup not only helps you stay compliant with privacy regulations but also optimizes the performance of your ad campaigns by allowing Google to model conversions even when consent for cookies is denied.

For ongoing success, it’s recommended to periodically review your settings within CookieYes to ensure they align with any updates in privacy laws or changes in your advertising strategy. Staying proactive with these adjustments will help you maintain both compliance and optimal ad performance.

For any further assistance, the CookieYes support team is available to help you navigate any challenges and ensure your integration remains effective.

Get started today with CookieYes and take full control of your user consent management while maximising your ad performance!

Advanced Consent Mode v2 with CookieYes
Tags:

First Place SEO, International House, 4 Maddox St, London W1S 1QP

02071128794

First Place SEO Agency London

Why NAP Is Important For Local SEO - First Place SEO
May 20 2025

Why NAP Is Important For Local SEO

Improve your local SEO rankings with consistent NAP. Learn how accurate business info boosts search visibility and trust with First Place SEO.

Is Doing Local SEO Worth it - First Place SEO
May 19 2025

Is Doing Local SEO Worth It In The UK?

Find out why local SEO still works in 2025. Learn how UK businesses use Google Business Profile, reviews, and citations to grow with First Place SEO.

Local SEO for London Businesses - First Place SEO
May 18 2025

Local SEO for London Businesses

Boost your visibility in local London searches with this 2025 SEO guide. Learn how to optimise your website, Google profile, and content for local success.

Is Duplicate Content Bad for SEO - First Place SEO
May 17 2025

Is Duplicate Content Bad for SEO?

Find out how duplicate content affects SEO and what you can do to fix it. Practical tips for UK businesses using canonical tags, location pages and more.

Does Geotagging Help Local SEO - First Place SEO
May 16 2025

Does Geotagging Help Local SEO?

Can Geotagging Improve Local SEO Rankings? Geotagging can help support local SEO by linking your content to a verified location. While it is not listed as an official...
Is AI Going to Destroy SEO - First Place SEO
May 15 2025

Is AI Going to Destroy SEO?

Understand how AI is reshaping SEO in todays world. Know what’s staying, what’s changing, and how to prepare your content to stay competitive in search...
How to improve local seo results in the uk - First Place SEO
May 14 2025

How To Improve Local SEO Results in the UK

Learn practical ways to improve local SEO for UK businesses. Optimise your Google Business Profile, local keywords, mobile usability, and more to attract more nearby...
can i put nap in The footer For local seo - First Place SEO
May 13 2025

Can I Put NAP in the Footer for Local SEO?

Placing NAP in your footer boosts local SEO, improves visibility in search, and builds trust. Learn best practices to optimise your business for local searches.

How Do Reviews Affect Local SEO - First Place SEO
May 12 2025

How Do Reviews Affect Local SEO?

See how reviews impact local SEO rankings. Learn the importance of Google Reviews, GMB, and Local Pack for improving your business’s visibility in local search...
what industries need local seo - First Place SEO
May 11 2025

What Industries Need Local SEO?

Find out which UK businesses benefit most from Local SEO. Learn how to attract more local customers, rank in Google Maps, and boost sales fast.

Request a call back about your SEO

Fill out our enquiry form and we will be in touch.

Consent To Contact You Regarding Your Enquiry