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

Setting "umami.disabled" in localstorage don't affects tracker functions #3031

Open
ahweis opened this issue Oct 30, 2024 · 1 comment
Open

Comments

@ahweis
Copy link

ahweis commented Oct 30, 2024

Describe the Bug

When using the option to exclude own page visits using the localStorage.setItem('umami.disabled', 1); option, it still collects data that is created by using the tracer functions in the code, e.g. umami.track('signup-button');

Database

PostgreSQL

Relevant log output

No response

Which Umami version are you using? (if relevant)

2.13.2

Which browser are you using? (if relevant)

Chrome

How are you deploying your application? (if relevant)

Docker

@mikecao
Copy link
Collaborator

mikecao commented Nov 10, 2024

The send method checks if tracking is disabled. You can still call track, it just won't do anything.

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