Open dn-achim opened 2 years ago
Calling this.$gtag.optOut() has no effect.
After this.$gtag.optOut() tracking should be inactive.
Tracking continues.
When using optOut(), which is a wrapper of disable(false), the value of config.id is null. So the window property is not set correctly:
optOut()
disable(false)
config.id
window[ga-disable-null]: true
npm ls vue-gtag: vue-gtag@1.16.1
npm ls vue-gtag
Can confirm. Also not working for me. npm ls vue-gtag: vue-gtag@2.0.1
EDIT: Since I have a Vue3 project I refactored to vue-gtag-next works like a charm.
vue-gtag-next
Description
Calling this.$gtag.optOut() has no effect.
Expected behavior
After this.$gtag.optOut() tracking should be inactive.
Actual behavior
Tracking continues.
When using
optOut()
, which is a wrapper ofdisable(false)
, the value ofconfig.id
is null. So the window property is not set correctly:window[ga-disable-null]: true
Environment
npm ls vue-gtag
: vue-gtag@1.16.1