Articles on: Frequently Asked Questions (FAQ)

How to use the data layer set by our app?

Integrating a consent management tool with your website involves understanding how the data layer works, especially when it comes to tracking user consent. Our app sets up a data layer that plays a crucial role in this process.

How the Data Layer Works:



Event Tracking:
- Upon enabling the consent bar, our app creates a consent_status event within the dataLayer object of your store.
- This event tracks real-time consent status across different cookie categories.

Understanding Consent Status:
- The data layer reflects the consent given by customers for various cookie groups.
- For example, if a customer opts-in for all cookie categories, the data layer would show:
analytics: true
     functionality: true
     marketing: true
     necessary: true


Accessing the Data Layer:
- To view this data, navigate to your store, open the Inspector tools > Console, and type dataLayer.

Integration with Google Tag Manager:
- Leverage the data layer in Google Tag Manager to trigger specific events based on user consent.



- Non-EU & Brazil Browsing:
- If the consent bar is configured for EU & Brazil visitors only, and someone browses from outside these regions, the consent_status event will show non_gdpr. This indicates the visitor is from a non-EU or non-Brazil region.

Understanding and utilizing the data layer effectively ensures compliance and allows for tailored marketing strategies based on user consent. For any assistance or queries regarding the data layer, feel free to reach out to our support team at support@consentmo.com. Our experts are ready to guide you through every step of the process.

Updated on: 09/01/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!