N
Nuxt3mo ago
Luc

Nuxt Scripts: Google Tag Manager + Consent Management

I have checked the Nuxt Scripts documentation and it explains well how to implement consent management with useScriptTriggerConsent. However, I would like to use it along with useScriptGoogleAnalytics composable and it seems there is not trigger prop in Nuxt config nor in the composable params. How can I do?
3 Replies
Luc
LucOP3mo ago
J'ai trouvé ! Il y a une propriété scriptOptions, mais j'étais passé à côté.
Luc
LucOP3mo ago
Nuxt Scripts
Triggering Script Loading · Nuxt Scripts
Nuxt Scripts provides several ways to trigger the loading of scripts.
Sagar Kapoor
Sagar Kapoor2w ago
@Luc Thanks! Were you able to make the cookie consent persistent across different sessions though?
Want results from more Discord servers?
Add your server