Open igorbrasileiro opened 1 year ago
Some events are being added to dataLayer before the initialization of GTM container or GA config.
Open the home with gtm tag assistant and check the view_item_list event being triggered before the container initialization event.
Afaik, all gtm events should be fired after container initialization, the container initialization is sent at onload event via Analytics section
This issue also happens with the https://github.com/deco-sites/std/blob/main/components/VTEXPortalDataLayerCompatibility.tsx#L103-L106
What is this issue about?
Some events are being added to dataLayer before the initialization of GTM container or GA config.
How to reproduce it?
Open the home with gtm tag assistant and check the view_item_list event being triggered before the container initialization event.
Extra info
Afaik, all gtm events should be fired after container initialization, the container initialization is sent at onload event via Analytics section