Skip to content

Unable to trigger google tag manager via consent #258

Closed
@chrisnoden

Description

@chrisnoden

📚 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions