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

Add conditions to tracking #84

Open
Vayel opened this issue Mar 17, 2021 · 1 comment
Open

Add conditions to tracking #84

Vayel opened this issue Mar 17, 2021 · 1 comment

Comments

@Vayel
Copy link

Vayel commented Mar 17, 2021

Hi!

Thanks for this project! It would be nice to be able to disable tracking on some pages based on some conditions. For instance, disabling tracking on some pages for users with certain roles (available in the Vuex store for instance).

Currently, we can just disable tracking statically on some pages with meta.analyticsIgnore.

Thanks!

@samastur
Copy link

samastur commented Nov 1, 2021

You can do this using by calling .setConsentGiven and .forgetConsentGiven methods.

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