EU Cookie Compliance GTM
This module integrates with the EU Cookie Compliance and Google Tag Manager modules to enhance cookie consent tracking. It allows you to store custom JSON data for each cookie category, expose this data in your site's settings, and automatically push it to Google Tag Manager's data layer when users interact with the cookie banner. This provides more detailed insights into cookie preferences and compliance.
This is a complementary module for the EU Cookie Compliance (GDPR Compliance) module, which integrates it with GoogleTagManager module.
Firstly, it extends the cookie category admin UI by adding a field to store arbitrary data in JSON format for each category.
Secondly, it exposes that data in drupalSettings.
Finally, it pushes that data to dataLayer by hooking into events triggered by the main module on user interaction.