Recognize Google-GeminiNotebook user agent - #9
Merged
Conversation
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
mneudert
approved these changes
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Google renamed the NotebookLM fetcher User-Agent token from
Google-NotebookLMtoGoogle-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-cloudflareitems of matomo-org/matomo#24914:matomo-org/tracker-cloudflare.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-NotebookLMbot name remains handled by Matomo core and Device Detector.Changes
src/config.ts: addedGoogle-GeminiNotebooktodefaultUserAgentPatterns.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:checkandnpm run typecheckall pass locally.Checklist