If in the state passed to the GTMProvider component the attribute dataLayer is not set, during the initialization an undefined item is pushed in the dataLayer.
I cannot find information regarding how bad it is to do this (GTM seems working without any problem), but surely it is useless and it causes some problems with some Chrome extensions, such as Datalayer Checker and Adswerve - dataLayer Inspector+
.
If in the state passed to the GTMProvider component the attribute dataLayer is not set, during the initialization an undefined item is pushed in the dataLayer.
I cannot find information regarding how bad it is to do this (GTM seems working without any problem), but surely it is useless and it causes some problems with some Chrome extensions, such as Datalayer Checker and Adswerve - dataLayer Inspector+ .