- Issue created by @szloredan
- Status changed to Needs review
almost 2 years ago 5:16pm 8 February 2023 - 🇪🇸Spain abarrio
Modified last patch made on #4 to avoid deprecation on DomNodeInserted. Migrated code to Mutation observer API.
We have the use case that accepting "Google Analytics" needs to also enable "Google Tag Manager" because it is injected from GTM. This dependency is not possible with the current klaro configuration.
Add a custom JS to check if the config has the "dependencies" key on services and when one is enabled/disabled the dependent services will be also activated or deactivated.
The service should look like this:
{
"name": "google-analytics",
"title": "Google Analytics",
"purposes": [
"statistics"
],
"default": false,
"cookies": [
"\/^_ga*$\/",
"\/^_gid*$\/"
],
"dependencies": ["google-tag-manager"]
}
Needs review
1.0
Code
Modified last patch made on #4 to avoid deprecation on DomNodeInserted. Migrated code to Mutation observer API.