You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the useScriptGoogleAnalytics 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?