react-gtm
react-gtm copied to clipboard
Throw an error when gtmId is not defined
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?