GoogleChromeLabs / third-party-capital

A library that provides best practices for loading popular third-parties
Apache License 2.0
117 stars 8 forks source link

feat(gtm): add optionnal consent mode #72

Closed huang-julien closed 1 month ago

huang-julien commented 2 months ago

linked to https://github.com/nuxt/scripts/issues/243 same as https://github.com/GoogleChromeLabs/third-party-capital/pull/71 but for GTM

Seems like this require to push arguments into the datalayer array. 🤷‍♂️

Result with the GTM debugger:

image

huang-julien commented 1 month ago

Setting this to draft mode until #73 lands on main branch

felixarntz commented 1 month ago

@huang-julien Just merged #73, so you should now be able to use the {{#consentValues}}...{{/consentValues}} syntax from there.

huang-julien commented 1 month ago

Woohoo 🎉🎉 thank you ! I'll update the PR tomorrow !