react-gtm icon indicating copy to clipboard operation
react-gtm copied to clipboard

Throw an error when gtmId is not defined

Open pierroberto opened this issue 1 year ago • 0 comments

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?

pierroberto avatar Oct 19 '23 15:10 pierroberto