Enforce Consent From 3rd Party (e.g. GTM)

Overview

Enabling the Feature

To enable this feature:

The relevant setting can be found here:

How It Works

Once enabled, HandL UTM Grabber will:

The main logic for this feature is implemented in the following JavaScript functions:

isConsentDenied();
removeHandLCookies();

You may use these functions as you see fit in your project. The isConsentDenied() function returns a Boolean value indicating whether consent is denied. The removeHandLCookies() function removes all HandL-related cookies (e.g., when consent is denied).

The plugin checks for consent using the getConsentStatus() and isConsentDenied() functions. These functions look for consent information in the dataLayer object, which is commonly used by consent management platforms.

Integration with Google Tag Manager (GTM)

To use this feature with Google Tag Manager:

Compatibility

This feature is designed to work with various consent management platforms that use the dataLayer to communicate consent status. It has been tested with Google Tag Manager but should be compatible with other similar systems.

Troubleshooting

If you're experiencing issues with this feature:

Important Notes

By implementing this feature, you're taking an important step towards respecting user privacy and complying with data protection regulations.


Revision #1
Created 6 October 2024 14:41:45 by Leman
Updated 6 October 2024 14:47:58 by Leman