-
Notifications
You must be signed in to change notification settings - Fork 125
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
url_ignorelist
on Autocapture config doesn't seem to be working
#1402
Comments
Hey, Are you receiving only I'd expect it's better to edit the user agent blocker... So, in your config you can set additional user agents we'll detect as bots. in your config you'd set (ofc if you're fine with other events and its just autocapture you want to block we can check that too :)) |
These are posthog.init(env.NEXT_PUBLIC_POSTHOG_KEY, {
api_host: "/ingest",
ui_host: "https://app.posthog.com",
person_profiles: "identified_only",
capture_pageview: false,
capture_pageleave: true,
autocapture: {
url_ignorelist: [/.*\.vercel\.app\/.*/, "vercel.app", "vercel.app/.*"],
},
}); I'll try adding Thanks! |
Turns out Vercel doesn't always set the user agent to that 🤦 Their latest request came with I think the Posthog client should be a global |
Hey, In the short term.. you can detect the URL and not initialize posthog which is equivalent to a url ignore list (if slightly more work on your part) and should work if you never want to collect on that URL... similar to how folk check if they're running on localhost and don't send data. I think this is maybe another vote for a global |
I want to ignore events from the Vercel screenshots crawler (user agent
vercel-screenshot/1.0
).These events have
$current_url
set tohttps://project-and-deployment-id.vercel.app/
.I tried adding all of the following:
but I'm still receiving these events.
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: