Skip to content

Recognize Google-GeminiNotebook user agent - #9

Merged
sgiehl merged 1 commit into
mainfrom
add-gemini-notebook-user-agent
Jul 29, 2026
Merged

Recognize Google-GeminiNotebook user agent#9
sgiehl merged 1 commit into
mainfrom
add-gemini-notebook-user-agent

Conversation

@sgiehl

@sgiehl sgiehl commented Jul 29, 2026

Copy link
Copy Markdown
Member

Summary

Google renamed the NotebookLM fetcher User-Agent token from Google-NotebookLM to Google-GeminiNotebook. This adds the new token to the default User-Agent allowlist and keeps the former one, which Google supports until August 2026.

This covers the tracker-cloudflare items of matomo-org/matomo#24914:

  • Update the default User-Agent allowlist in matomo-org/tracker-cloudflare.
  • Update the Cloudflare tracker tests, example configuration and documentation.

The equivalent change for the CloudFront tracker is matomo-org/tracker-cloudfront#12.

No bot-name aliasing is needed here — this tracker only decides whether a request is forwarded to Matomo. Canonical normalization to the Google-NotebookLM bot name remains handled by Matomo core and Device Detector.

Changes

  • src/config.ts: added Google-GeminiNotebook to defaultUserAgentPatterns.
  • tests/config.test.ts: updated the expected default allowlist regex and added coverage asserting Google's documented current desktop and mobile agents as well as the former agent are allowed.
  • .dev.vars.example: updated the example allowlist.
  • README.md: documented the new token in the default allowlist.

Verification

  • npm test, npm run lint, npm run format:check and npm run typecheck all pass locally.

Checklist

  • [✔] I have understood, reviewed, and tested all AI outputs before use
  • [✔] All AI instructions respect security, IP, and privacy rules

Google renamed the NotebookLM fetcher token from `Google-NotebookLM` to
`Google-GeminiNotebook`. Add the new token to the default user agent
allowlist and keep the former one, which Google supports until
August 2026.

Refs matomo-org/matomo#24914
@sgiehl
sgiehl requested a review from mneudert July 29, 2026 07:35
@sgiehl
sgiehl merged commit 5b0ad52 into main Jul 29, 2026
3 checks passed
@sgiehl
sgiehl deleted the add-gemini-notebook-user-agent branch July 29, 2026 07:55
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.

2 participants