Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optOut() is not working #402

Open
dn-achim opened this issue Jan 14, 2022 · 1 comment
Open

optOut() is not working #402

dn-achim opened this issue Jan 14, 2022 · 1 comment

Comments

@dn-achim
Copy link

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 of disable(false), the value of config.id is null.
So the window property is not set correctly:

window[ga-disable-null]: true

Environment

npm ls vue-gtag: [email protected]

@dasheck0
Copy link

dasheck0 commented Jan 25, 2022

Can confirm. Also not working for me. npm ls vue-gtag: [email protected]

EDIT: Since I have a Vue3 project I refactored to vue-gtag-next works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants