Closed vincent-lu closed 4 years ago
what are you tracking twice? the /invoice-loaded
?
I think I found the bug which is also related to another one. I will try to push a fix asap
what are you tracking twice? the
/invoice-loaded
?
No, this.$gtag.optIn();
or bootstrap()
triggers a different tracking hit. But a tracking hit nonetheless.
My guess is that they trigger a gtag config command without path specified.
yeah on bootstrap a hit is sent by default because I wrongly set it up like analytics. but there's no need to set trackers on gtag
possibly fixed by this 😆 https://github.com/MatteoGabriele/vue-gtag/pull/142
Hi first thanks for the plugin!
I'm trying to send pageview hit on only specific pages with code below:
And this is the only tracking hit I want to send.
However no matter what I do (opt out initially, not enable initially etc.), whenever I optIn or bootstrap $gtag (so I can run
this.$gtag.pageview()
), it sends its own tracking hit.This leads to sending tracking hit twice.
The methods I tried are either:
or
Can someone please point me to the right direction so I don't send tracking hit twice? Thanks.