Closed Steffi3rd closed 1 year ago
@Steffi3rd the issue is not related to this lib. Here is a section on how to prevent objects merging from GA UA documentation: https://developers.google.com/analytics/devguides/collection/ua/gtm/enhanced-ecommerce#clear-ecommerce
Awesome! Thank you! 🥳
Closing as resolved 😄
Hello,
I use this repo for few weeks now and it works fine and very cool, thank you for that. I just would ask a question about if it's possible to reset dataLayer when page changes.
For example :
Code
I have this in my _app.tsx
And this, in my
index.tsx
And this, in my
contact.tsx
Workflow
Result
The result of that is
instead :
I would like to not merge previous state with the new one.
Is there a way to do that please ?