Closed gabiudrescu closed 2 years ago
Good spot and interesting take, for my use cases this wasn't an issue, but now you report this it makes sense to me.
The downside of it is that it leans more on the JS part (frontend) to send in the proper variants instead of the backend pageview, but we might be able to implement it safely.
Are you able to provide a PR with this functionality?
maybe with a little guidance, I can give it a try. it would be nice to find some spare time together, over a google hangouts and work a little bit on it.
I can see the downside, but I don't think there is any other way around this, as GTM and GA EE are JS bound and basically, that's the environment you are working in.
Implemented in v1.1.0 thanks to @kgonella !
Preconditions:
Steps to reproduce:
What happens:
What should happen:
On this page:
I have this dataLayer event:
Though I should have only this:
And if the visitor changes the variant to M, for example, another event like the one below should be fired: