This repository provides a fixed and enhanced integration between Finsweet's Cookie Consent script (fs-cc.js
) and Google Tag Manager (GTM). It ensures that consent settings from Finsweet’s system are correctly mapped and pushed to GTM for compliance with Google Consent Mode, GDPR, and CCPA.
By default, Digital Sparks' Cookie Consent Boost script (index.js
) incorrectly linked ad_personalization
to "Personalization" instead of "Marketing." Since this script pushes consent updates to GTM, incorrect mapping leads to inaccurate tracking behavior in Google Ads and Analytics.
This fix ensures:
- ✅ Accurate Google Consent Mode behavior – GTM receives correct consent signals for tracking.
- ✅ Full GDPR & CCPA Compliance – Prevents unauthorized tracking based on user consent.
- ✅ Reliable Webflow + GTM Integration – Ensures consent settings are correctly reflected in GTM, Google Ads, and Analytics.
The easiest way to integrate this fix is by loading the scripts via jsDelivr:
<script async src="https://cdn.jsdelivr.net/gh/StephanRyatt/fs-cc-gtm-integration/fs-cc-fixed.js" fs-cc-mode="opt-in"></script>
<script async src="https://cdn.jsdelivr.net/gh/StephanRyatt/fs-cc-gtm-integration/index-fixed.js"></script>
🚀 Why use jsDelivr?
- No hosting required.
- Fast, global CDN.
- Automatically caches the latest version when updated.
Prefer to host the scripts yourself? Follow these steps:
- Download the files:
- Upload them to your own server.
- Update your script references in Webflow or your website.
💡 Advanced users: If modifying further, fork this repo and update your jsDelivr links accordingly.
This integration ensures that consent preferences are correctly passed to Google Tag Manager (GTM):
ad_personalization: window.FsCC.store.consents.marketing ? "granted" : "denied",
This prevents ad personalization from being incorrectly tied to "Personalization" and ensures only "Marketing" consent enables ad-related cookies.
Since index-fixed.js
updates GTM’s dataLayer, Google Ads, Analytics, and other tools receive the correct consent signals, preventing unauthorized tracking and maintaining compliance.
- 🛠
ad_personalization
now aligns with "Marketing" consent. - ⚡ Ensures Google Consent Mode, GDPR, and CCPA compliance.
- 🔄 Fully compatible with Webflow, GTM, and Google Analytics.
Open an issue in this repo or reach out for support! 🚀