Closed cristianlivella closed 2 years ago
By injecting the GTM script before the dataLayer, the userId in the state doesn't work in Google Analytics, as it is initialized before the id is set.
This way it seems to work correctly.
Reference: https://developers.google.com/tag-platform/tag-manager/web/datalayer#installation
By injecting the GTM script before the dataLayer, the userId in the state doesn't work in Google Analytics, as it is initialized before the id is set.
This way it seems to work correctly.
Reference: https://developers.google.com/tag-platform/tag-manager/web/datalayer#installation