Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to trigger google tag manager via consent #258

Closed
chrisnoden opened this issue Sep 12, 2024 · 1 comment
Closed

Unable to trigger google tag manager via consent #258

chrisnoden opened this issue Sep 12, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@chrisnoden
Copy link

chrisnoden commented Sep 12, 2024

📚 What are you trying to do?

Trying to add a trigger to the scriptOptions for useScriptGoogleTagManager causes a crash

eg

useScriptGoogleTagManager({
    key: 'KEY',
    scriptOptions: {
        trigger: useScriptTriggerConsent({
            consent: agreedToCookies
        })
    },
})

🔍 What have you tried?

No response

ℹ️ Additional context

No response

@chrisnoden chrisnoden added the help wanted Extra attention is needed label Sep 12, 2024
@chrisnoden
Copy link
Author

OK. It might be that JetBrains (WebStorm) is adding
import { useScriptTriggerConsent } from '#app/composables/script-stubs';
to my script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant