Compatibility with Cookie Banners and Consent Mode (v2)
Video walkthrough
This video explains how Consent Mode works with Tracklution and the difference between Basic and Advanced implementations. It walks through how tracking behavior changes based on granted or denied consent, how to enable automatic consent reading, and how to manually pass consent values if needed. The video also covers Shopify setups and how to test that consent status is correctly reflected inside the Tracklution dashboard.
Basic Consent Mode: load Tracklution after consent is given
With Basic Consent Mode, Tracklution tags load only after the visitor gives cookie consent, the same way other tracking tags are typically loaded. By default, Tracklution assumes this approach: until it receives a consent status, it treats consent as granted.
Trigger the first PageView immediately once cookie consent is given. If it only fires after the visitor moves to the next page, information from the beginning of the session, such as UTM tags and click IDs, can be lost.
Report purchases without cookie consent
If a visitor didn't give cookie consent, you may still have another basis for processing their purchase data, such as acceptance of your terms of use or an established customer relationship. In that case, you can report these purchases to a webhook as offline conversions. This also helps complement conversion data when you use Basic Consent Mode.
This is not legal advice. Whether you have a basis for processing data without cookie consent depends on your business, your terms and the laws that apply to you. Tracklution does not assess this for you. Check with your legal advisor or data protection officer before sending these purchases.
Read more: Send Events From Any Platform With a Webhook
Advanced Consent Mode: load Tracklution always
With Advanced Consent Mode, Tracklution tags load immediately at the start of the session, and each visitor's cookie choices are integrated into Tracklution. Tracklution applies each visitor's consent choices when it sends data to your connectors.
In the browser, pixels behave as follows:
- Google Ads, Google Analytics 4 and Microsoft Ads: Tracklution passes the visitor's consent state to their pixels.
- Meta, Pinterest and other ad platforms such as TikTok, Snapchat and LinkedIn: Tracklution loads their pixels only when marketing consent is granted.
- Reddit: Tracklution loads the pixel in Limited Data Use mode when marketing consent is denied.
On the server side, each connector handles denied consent in its own way. Some platforms receive the event marked as restricted, some do not receive it at all, and a few receive it without a consent signal. See "What happens to events when consent is denied" below.
Provide the visitor's consent status
To use Advanced Consent Mode, Tracklution needs each visitor's consent status. You can provide it in one of these ways:
- Automatic consent reading with GTM's built-in Consent Mode. See "Using GTM's built-in Consent Mode" below.
- Shopify App, which reads consent automatically from Shopify. See "Using the Shopify App" below.
- Manual installation, where you send the consent status to Tracklution yourself. See "Send the consent status manually" below.
Set default consent states
Under Settings > Advanced Settings in your container, you can set default consent states for Analytics and Marketing. Tracklution uses them as a fallback until it receives the visitor's choice. If you don't set them, Tracklution treats consent as granted.
Using GTM's built-in Consent Mode
If you use GTM's built-in Consent Mode and your cookie banner is integrated with it, Tracklution can read the consent values from the data layer and adjust to them automatically.
- Go to Settings > Advanced Settings in your container.
- Toggle on Use automatic consent reading.
- Select the default consent states for analytics and marketing from the dropdowns.
The consent states must use the standard Google Consent Mode values. If your setup uses custom values or category names, map them to the standard values or send the consent states manually.
Using the Shopify App
The Tracklution custom pixel reads each visitor's consent from Shopify's Customer Privacy API and applies it automatically. This works with Shopify's native cookie banner and with any third-party banner app that passes consent to the Customer Privacy API. Check with your banner provider whether yours does.
Choose your consent mode in Shopify under Settings > Customer events > Tracklution App > Customer Privacy:
| Consent mode | Permission setting | What happens |
|---|---|---|
| Advanced | Not required | The Tracklution script runs for every visitor and sends each visitor's consent status with the events. Tracklution applies it automatically. |
| Basic | Required, with the consent types you want to require selected | The Tracklution script does not load at all until the visitor gives that consent. |
If your cookie banner does not pass consent to Shopify's Customer Privacy API, Tracklution can't reliably read it. Turning on automatic consent reading in Tracklution doesn't help, because Shopify installations always use Shopify's own consent. Use Shopify's native banner or a banner app that works with the Customer Privacy API.
What happens to events when consent is denied
With Basic Consent Mode, Tracklution tags load only after consent is given, so Tracklution tags don't track visitors who deny consent.
With Advanced Consent Mode, Tracklution records every event together with the visitor's consent state. When consent is denied, each connector receives the following:
| Connector | When consent is denied |
|---|---|
| Google Ads | Conversions are still sent from Tracklution's server. Uploaded conversions carry ad_user_data and ad_personalization set to denied. For browser conversions without a Google click ID, the conversion goes through the Google tag in the browser, and Tracklution's server adds hashed contact data to it when an email address or phone number is known (Enhanced Conversions). Google's API has no consent field for that addition. |
| Google Analytics 4 | Tracklution's server does not send events to GA4 when analytics consent is denied. Events that go through the Google tag in the browser are still passed to the tag, with analytics_storage set to denied. Events that are sent only from the server are not sent: webhook events, and purchases when GA4 V2 is enabled in the connector. For those purchases, you can turn on Send anonymous purchase pings when analytics consent is denied in the GA4 connector, so they are passed to the Google tag instead. |
| Microsoft Ads | Tracklution passes ad_storage denied to the UET tag in the browser. With the Conversions API setup (recommended), events are still sent, marked with ad storage consent denied. With the Online & Offline conversion goals setup (legacy), offline conversions are sent without a consent signal. |
| Meta | Events are sent through the Conversions API marked as opted out (opt_out). Meta is phasing out this field. As it stands, after opt_out is retired, events from visitors who denied marketing consent will no longer be sent to Meta. |
| Pinterest and OpenAI Ads | Events are sent through the Conversions API marked as opted out (opt_out). |
| Snapchat and Reddit | Events are sent marked for Limited Data Use. |
| Nextdoor | Events are sent marked for Restricted Data Usage, with delivery optimization turned off. |
| Campaign Manager 360 | Conversions are sent marked as "limit ad tracking". |
| TikTok, LinkedIn, X, Adform, Outbrain, Taboola and PropellerAds | Events are not sent when marketing consent is denied. |
| Amplitude and Mixpanel | Events are not sent when analytics consent is denied. |
| Adtraction and Awin | A connector setting decides: Respect consent for Adtraction (under More settings) and Respect visitor consent for Awin. It is off by default, so all conversions are sent. When it is on, conversions from visitors who denied marketing consent are not sent. |
| Klaviyo and Custom Connector | Events are sent regardless of consent. Custom Connector can include the visitor's consent status in the request, so the receiving system can decide what to do with it. |
You can also block individual events when analytics or marketing consent is denied. This setting is available for the connectors in Settings > Event Mapping: Meta, TikTok, Snapchat, Pinterest, Reddit, X, OpenAI Ads, Nextdoor, Outbrain, Taboola, PropellerAds, Google Analytics 4, Amplitude, Mixpanel, Klaviyo and Awin. Click Edit on the event, open Additional settings (the three-dot menu) in the connector's column and turn on Block if analytics or marketing consent is denied. For Awin, this works only when Respect visitor consent is on. Google Ads, Microsoft Ads, Campaign Manager 360, Adform, LinkedIn, Adtraction and Custom Connector do not have this setting.
Consent-denied conversions are recorded in Tracklution, but they are sent to each platform differently, or not at all. Because of this, conversion counts in Tracklution and in the ad platforms may not match exactly.
Send the consent status manually
If you can't or don't want to use the automatic options above, you can send the consent status to Tracklution manually.
Send the consent values as early as possible, ideally at the start of the session and whenever consent is obtained or updated. A common approach is to send them alongside the PageView tag, so the consent status follows the whole session and updates if the visitor changes their choices. For example, consent may be given after several page loads, or during a purchase if an established customer relationship gives you a basis for processing.
Use whichever of the following is easier for your installation.
Simple implementation:
<script>
tlq('set', 'Consent', {
'analyticsConsent': '{{ ADD DATA LAYER VARIABLE HERE }}',
'marketingConsent': '{{ ADD DATA LAYER VARIABLE HERE }}'
});
</script>
Detailed implementation:
<script>
tlq('set', 'Consent', {
'ad_user_data': '{{ ADD DATA LAYER VARIABLE HERE }}',
'ad_personalization': '{{ ADD DATA LAYER VARIABLE HERE }}',
'ad_storage': '{{ ADD DATA LAYER VARIABLE HERE }}',
'analytics_storage': '{{ ADD DATA LAYER VARIABLE HERE }}'
});
</script>
- Replace each
{{ ADD DATA LAYER VARIABLE HERE }}with the correct data layer variable. - Values must be either
grantedordenied. - In the detailed implementation, always include
ad_storageandanalytics_storage. Tracklution sets marketing consent fromad_storageand analytics consent fromanalytics_storage.
You always have full control over your installation and data
Installation in relation to your cookie banner
You always choose whether Tracklution tags load:
- Only after cookie consent has been granted (Basic Consent Mode), or
- Always (Advanced Consent Mode)
Which approach fits your site depends on your own legal assessment.
All data in your container is your data. You decide what is collected and where it is sent, and you remain responsible for how it is processed. Tracklution is a technology provider (processor) and gains no control rights to your data.
What data is collected
| Data | How it is collected |
|---|---|
| Web session technical data: user agent and IP address | Automatically |
| Cookie consent | GTM built-in Consent Mode, Shopify, or manual implementation |
| Events on your website | Standard eCommerce funnel events automatically with the Shopify App or WooCommerce Plugin. Other events as you configure them manually. |
| eCommerce data, such as product IDs and product variants | Automatically with the Shopify App or WooCommerce Plugin, or manually in GTM or directly on your website |
| Enhanced Conversions: first-party user-provided data from webhooks or website visitors (ContactInfo tag) | Automatically with the Shopify App or WooCommerce Plugin, or with automatic collection from the GTM data layer. Otherwise manually in GTM or directly on your website. |
What data is sent and where
- You always define and control which connectors (data destinations) you use. Tracklution never sends your data to ad platforms unless you have activated a connector to send it.
- You can always activate, pause and review connector statuses in your container.
- Your container gives you full transparency and logging of what data has been collected and what has been sent to each active connector.
- Email addresses, phone numbers and names are hashed before they're forwarded to ad platforms. The exceptions are connectors that need the original value to work: Klaviyo, which matches profiles by email address, Custom Connector, which sends the fields you map to your own endpoint, and Amplitude if you select Plain e-mail as its user ID. You can hash this data before it reaches Tracklution, or let Tracklution hash it.
- Postal code, city and country are sent unhashed to platforms whose format requires it, such as Google.
- Hashed or not, your data always remains yours. Tracklution is a technology provider (processor) and gains no control rights to your data.




