Skip to content

feat: add skipBrowsers option#6

Merged
Gdewilde merged 1 commit intomainfrom
feat/skip-browsers
Apr 20, 2026
Merged

feat: add skipBrowsers option#6
Gdewilde merged 1 commit intomainfrom
feat/skip-browsers

Conversation

@Gdewilde
Copy link
Copy Markdown
Contributor

New option skipBrowsers: true captures AI bots and coding agents but skips browsers.

void trackVisit(req, {
  analytics,
  skipBrowsers: true, // AI bots + coding agents only
  source: 'website'
})

Captures:

  • AI bots: ClaudeBot, GPTBot, PerplexityBot, Google-Extended, etc.
  • Coding agents: axios, curl, node-fetch, Electron, Go http client
  • NOT browsers: Chrome, Firefox, Safari

3 new tests added. All 102 tests pass.

New option: skipBrowsers: true captures AI bots (ClaudeBot, GPTBot, etc.)
and coding agents (axios, curl, node-fetch, Electron) but skips regular
browsers. Use when client-side analytics already handles browser traffic.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Gdewilde Gdewilde merged commit 2cc8b01 into main Apr 20, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant