Open
Description
Hello 👋
we are trying to switch from our own google tag manager implementation to nuxt/script, but we are facing some issues:
-
We only want to load the script if consent is given, and we have a ref/computed with this information. Afaik
useScriptTriggerConsent
can only be used with useScript() and not with theuseScriptGoogleAnalytics
composable. It's not alot of code to write it ourselves, but we wondered if it's possible to just pass in a ref which loads and unloads the script. -
Which brings me to my next question: How do we unload the script when using
useScriptGoogleAnalytics
?
BR
Metadata
Metadata
Assignees
Labels
No labels