Skip to content

Throw an error when gtmId is not defined #126

@pierroberto

Description

@pierroberto

Hi team,

when gtmId is not provided to the initialize method, I get the following warning: [react-gtm] GTM Id is required and the gtm script is loaded anyway.

Wouldn't be better to show a console.error and not to load the gtm script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions