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

Throw an error when gtmId is not defined #126

Open
pierroberto opened this issue Oct 19, 2023 · 0 comments
Open

Throw an error when gtmId is not defined #126

pierroberto opened this issue Oct 19, 2023 · 0 comments

Comments

@pierroberto
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant