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

Skip track_pageview for specific websites #465

Open
shershen08 opened this issue Jan 15, 2025 · 1 comment
Open

Skip track_pageview for specific websites #465

shershen08 opened this issue Jan 15, 2025 · 1 comment

Comments

@shershen08
Copy link

Currently we have tracking enabled like this in chrome extension app:

 mixpanel.init(APP_ID, {
    ignore_dnt: true,
    track_pageview: "full-url",
    persistence: "localStorage"
  })

looking at the docs I couldn't find any way to skip tracking when user visits specific website.

for example:

  • visit to: amazon.com tracked
  • visit to: facebook.com not tracked
  • visit to: amazon.com tracked
@tdumitrescu
Copy link
Member

Thanks for the report @shershen08. You're right: with the current track_pageview option, there is no way to omit specific pages. We do have a new configuration coming out soon (autocapture) where you'll be able to specify in more detail which tracking happens automatically, including a block_url_regexes option for specifying pages which shouldn't have automatic tracking.

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