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 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 TypeCookieYes Consent TypePurpose
ad_storageadvertisementTo enable advertisement cookies.
analytics_storageanalyticsTo enable analytics cookies.
functionality_storagefunctionalTo enable functional cookies.
personalization_storagefunctionalTo enable functional cookies for personalization.
security_storagenecessaryTo enable necessary cookies for security.
ad_user_dataadvertisementTo control the sharing of user data with Google.
ad_personalizationadvertisementTo 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

What local seo companies may not be telling you - First Place SEO
Jun 09 2025

What Local SEO Companies May Not Be Telling You

Find out what your local SEO agency might not be doing. Learn what matters for rankings, leads, and visibility with First Place SEO’s honest insights.

Which UK Local Directories are best for seo - First Place SEO
Jun 05 2025

Which UK Local Directories Are The Best For SEO?

Learn which UK business directories matter most for SEO in 2025. Discover citation sites, schema tips, review platforms, and how First Place SEO can help improve your...
What Is a Local SEO Company - First Place SEO
Jun 02 2025

What Is a Local SEO Company?

Learn how a local SEO company helps UK businesses boost visibility in local search. Discover expert tips on Google Business Profile, citations, reviews, and local...
what is enterprise local seo - First Place SEO
May 29 2025

What Is Enterprise Local SEO?

Learn how Enterprise Local SEO helps multi-location businesses grow with scalable tactics, Google Business Profile management, review strategies, and local ranking...
How to Create Content for Local Landing Pages for SEO - First Place SEO
May 26 2025

How to Create Content for Local Landing Pages for SEO

Learn how to create optimised local landing page content that ranks and converts. Get tips on structure, SEO strategy, conversion tactics and more.

10 Powerful Ways to Increase Local SEO - First Place SEO
May 23 2025

10 Powerful Ways to Increase Local SEO

Learn how to improve your local SEO in 2025 with proven tips for UK businesses. Boost your rankings with keywords, reviews, schema markup, and map visibility.

Where Can Local SEO Take Me - First Place SEO
May 22 2025

Where Can Local SEO Take Me?

Learn how local SEO helps UK businesses rank for “near me” searches, attract local customers, and grow visibility with trusted strategies.

what is ranking for neighbourhoods local seo - First Place SEO
May 21 2025

How to Rank for Neighbourhoods With Local SEO

Learn how to rank in neighbourhood search results with UK-focused Local SEO strategies. Boost your visibility, relevance, and traffic in specific areas.

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.

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