-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: implement Google Consent Mode v2 with cookieless pings #8987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add consent defaults before gtag.js loads (required for Consent Mode v2) - Enable cookieless pings with url_passthrough for Google Ads - Implement consent update logic for all consent categories - Support both granted and denied consent states - Maintain backward compatibility with existing consent manager
Contributor
Author
Contributor
|
🚀 Preview deployed! Your changes have been deployed to Vercel: Preview URL: https://roo-code-website-aaue8ata5-roo-code.vercel.app This preview will be updated automatically when you push new commits to this PR. |
apps/web-roo-code/src/components/providers/google-analytics-provider.tsx
Show resolved
Hide resolved
apps/web-roo-code/src/components/providers/google-analytics-provider.tsx
Outdated
Show resolved
Hide resolved
Collaborator
|
@roomote address all PR feedback. |
Contributor
Author
|
Fixed the reported issue. All local checks passed. |
…initialization loop
mrubens
approved these changes
Nov 3, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Enhancement
New feature or request
Issue/PR - Triage
New issue. Needs quick review to confirm validity and assign labels.
lgtm
This PR has been approved by a maintainer
size:L
This PR changes 100-499 lines, ignoring generated files.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements Google Consent Mode v2 with cookieless pings for Google Ads tags on the marketing website.
Changes
url_passthroughparameterKey Features
Cookieless Pings: When users decline cookies, Google Ads can still send conversion data without cookies using the
url_passthroughparameter. This allows for privacy-friendly conversion tracking.Consent Mode v2 Compliance: Implements all required consent types for Google Consent Mode v2:
ad_storage- Storage for adsad_user_data- Consent for sending user data to Google for advertisingad_personalization- Consent for personalized adsanalytics_storage- Storage for analyticsfunctionality_storage- Storage for functionalitypersonalization_storage- Storage for personalizationsecurity_storage- Always granted for security purposesPrivacy-First Approach: All consent types default to "denied" until user explicitly accepts cookies, maintaining GDPR compliance.
Testing
Related
Addresses Slack request to update Google Ads tags to use advanced Google Consent Mode v2 with cookieless pings while making minimal changes.
Important
Implements Google Consent Mode v2 with cookieless pings and TypeScript types in
google-analytics-provider.tsx.google-analytics-provider.tsx.gtag.jsloads, enablingurl_passthroughfor cookieless pings.ad_storage,ad_user_data, andanalytics_storage.ConsentState,ConsentParams, andGtagArgs.This description was created by
for b7d5bd3. You can customize this summary. It will automatically update as commits are pushed.