Version: 1.0
Last Updated: October 28, 2025
This guide contains the following sections:
Overview
Webflow is a no-code visual development platform that allows users to build responsive websites, landing pages, and e-commerce stores without writing code. It functions like a graphic design tool, enabling drag-and-drop design, while automatically generating clean, semantic HTML, CSS, and JavaScript behind the scenes.
This guide provides guidance on how to integrate the TrustArc Cookie Consent Manager into a Webflow website. It is designed to walk users through the configuration, deployment, and verification of the consent banner to ensure compliance with privacy regulations.
By integrating TrustArc Cookie Consent Manager with your Webflow site, you can:
- Automatically inject cookie banners into your site
- Manage and update privacy configurations via TrustArc
- Dynamically load scripts based on user location and consent preferences
- Track consent through standard event listeners and Google Tag Manager
- Enable seamless integration with Google Consent Mode
- Quickly integrate user tracking consent for Webflow Analyze and Optimize
Implementing Consent Manager on a Webflow Site
This provides the necessary steps to integrate and deploy the TrustArc Cookie Consent Manager (CCM) onto your Webflow site. The process involves installing the application, authorizing its access to your Webflow custom code, and configuring the essential parameters for your cookie banner.
- Install and open the Trustarc Cookie Consent Manager (CCM) app.
-
Authorize the app to access your Webflow site. This grants permissions to read and update the custom code on your Webflow pages.
-
In the app, select the desired Webflow site to connect. Then, click Authorize App.
-
Accept the Trustarc Terms of Use and confirm that you have a valid TrustArc account. Then, click Continue to Application to proceed.
-
Click + Create New Configuration, provide a Configuration Name, then click Create.
-
Select a CCM version and provide the following CMP configurations to set up the cookie banner:
- CCM Version: Choose CCM Advanced for greater customization.
- CMP Script ID: Enter the unique CMP ID provided by TrustArc.
-
CMP Script Parameters: Enter additional parameters for customizing the CMP script
(Example for CCM Advanced:
&c=teconsent&behavior=&country=us&js=nj¬iceType=bb>m=1&pcookie) - Banner Container: Specify the ID or HTML element where the cookie banner will be displayed. This defaults to consent_blackbar based on the CMP version you selected.
-
(OPTIONAL) You can enable the Display Cookie Preferences Link feature.
Or you can use the website editor. Then, add an element with the
teconsentID in the website’s footer link, which matches the configuration in the CMP Script Parameters field.
-
Enable Standard Event Listener to fire custom events for Google Tag Manager (GTM) when consent is given in the dataLayer variable.
-
In the Opt-out Setting field, enter the region code(s). By default, if the user's region is set to the US, users will be automatically Opted-In to tracking.
-
Enable Google Consent Mode if the client uses
gtag.js.
- In the Consent Behavior field, select which Trustarc cookie has configurations for opt-out preferences.
-
Fill in the following optional fields:
- Google Analytics (GA) Measurement ID
- Enable Data Reduction
- Enable URL Passthrough
- Set the Consent Type Mapping for Google (choose options as needed).
-
Set the Wait For Update to 500 milliseconds.
-
Enable Webflow Analyze and Optimize for Webflow tracking consent integration. Then, map the consent category. The category here comes from the Cookie Consent Manager that is set up in the CMP Configuration section.
- Click Save & Next.
-
Choose the Webflow site you authorized earlier.
- For a new app, register the script from TrustArc to be published on Webflow. A new script (version 1) will be registered.
-
Click Deploy Consent Manager. Wait a few seconds while the script installs.
-
After deployment, confirm that you understand that publishing will apply all ongoing changes. Then, click Publish.
-
Once published, your script is live. To view the active site, click View Site.
Verifying the Banner on the Live Site
This section guides you through the process of verifying that the TrustArc Cookie Consent Manager is correctly installed, loading its assets, and displaying the dynamic banner on your live Webflow site.
- Open your Webflow site in another tab.
-
Confirm that the cookie banner is visible.
-
Open Developer Tools > Network Tab. Then, look for a CDN call referencing version 1 of the script for the new app submission.
- The Response tab contains the code snippet responsible for loading all necessary assets onto the page. This is the same essential loading mechanism used for the other extensions referenced in the application submission.
Updating and Redeploying the Script
Follow these steps when you make a change to your configuration within the TrustArc settings and need to update the live site.
-
In your application, click Start Over.
-
Make the desired changes to the configuration (e.g., disabling an option or adding a new parameter). Then, click Save and Next.
-
Select the site(s) where you want to publish the update.
-
The version is now changed since changes were made, and you must re-register and redeploy the script.
-
Click Deploy Consent Manager to deploy the updated configuration.
-
Confirm that you understand that publishing will apply all ongoing changes. Then, click Publish. The script is now updated on the back-end, ready to be pulled by your website.
-
Visit the live site and check the network call, specifically the CDN call. You should now see the new version loading (for example, Version 2) on the page, confirming your update is active.
Getting the User Tracking Choice
This section details the necessary steps to retrieve the user’s current tracking preference.
- Open your Webflow site in another tab.
-
Open Developer Tools > Console Tab. Then, call the function
wf.getUserTrackingChoice(), which returns the user's current tracking choice:
-
'allow'- The user has opted in to tracking. -
'deny'- The user has opted out of tracking. -
'none'- The user hasn’t made a choice.
In the example, the function returns allow because the connection is detected from an implied location (the US). The Cookie Consent Manager's default settings will automatically opt the user in to tracking. User selections immediately update their tracking status.