Skip to content

Track events for markdown page views, llms.txt, MCP connections#4110

Open
SamyPesse wants to merge 6 commits intomainfrom
track-md-agent
Open

Track events for markdown page views, llms.txt, MCP connections#4110
SamyPesse wants to merge 6 commits intomainfrom
track-md-agent

Conversation

@SamyPesse
Copy link
Member

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Mar 12, 2026

🦋 Changeset detected

Latest commit: d30833c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@argos-ci
Copy link

argos-ci bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2-cloudflare (Inspect) ✅ No changes detected - Mar 16, 2026, 3:51 PM
customers-v2-vercel (Inspect) ✅ No changes detected - Mar 16, 2026, 3:49 PM
v2-cloudflare (Inspect) ✅ No changes detected - Mar 16, 2026, 3:57 PM
v2-vercel (Inspect) ✅ No changes detected - Mar 16, 2026, 3:55 PM

@SamyPesse SamyPesse changed the title Track markdown page views Track markdown page views, llms.txt, MCP connections Mar 16, 2026
@SamyPesse SamyPesse changed the title Track markdown page views, llms.txt, MCP connections Track events for markdown page views, llms.txt, MCP connections Mar 16, 2026
}
const { context } = await getStaticSiteContext(awaitedParams);
return serveLLMsFullTxt(context, page);
return serveLLMsFullTxt(request, context, page);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one will only track once, the first time it is accessed. After that it will be served from the cache and not hitting that again.
If we want to track all access, we need to do that at the middleware level

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