Skip to content

docs: add analytics events reference page#5512

Merged
devalog merged 8 commits into
mainfrom
devin/1778793395-analytics-events-reference
May 18, 2026
Merged

docs: add analytics events reference page#5512
devalog merged 8 commits into
mainfrom
devin/1778793395-analytics-events-reference

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot commented May 14, 2026

Summary

Adds a new "Analytics events reference" page and updates the integrations overview with more context about how Fern handles analytics.

New page (analytics-events.mdx):

  • Documents all analytics events Fern emits on customer docs sites
  • Each event table has a Forwarded to column showing which customer-configured providers (PostHog, GA4, GTM, Segment) receive each event
  • Note clarifying that FullStory and Intercom provide session recording and chat, not named event forwarding
  • Events covered: page views, feedback, API Playground, search/AI, and errors

Overview page updates (overview.mdx):

  • Added intro paragraph explaining that Fern emits analytics events and forwards them to configured providers
  • Added "Supported providers" heading above the card group
  • Added missing Google Analytics and Mixpanel cards
  • Moved "Disable analytics" section here from the events reference page (better fit as a top-level concern)
  • Tightened wording in "Enable analytics" section

Other changes:

  • Cross-reference link on the PostHog page updated to say "forwards" instead of "emits"

Review & Testing Checklist for Human

  • Verify the events reference page renders correctly at /learn/docs/integrations/analytics/events
  • Verify the overview page renders correctly at /learn/docs/integrations/overview
  • Confirm the "Forwarded to" column values are accurate — sourced from the fern-platform codebase (packages/fern-docs/bundle/src/components/analytics/)
  • Confirm the new Google Analytics and Mixpanel cards link to the correct pages

Notes

  • Provider forwarding was determined by tracing the code: events sent via the track() event bus reach PostHog, GA4, and GTM. Page views are sent directly to PostHog and Segment. ask_ai_suggest is server-side internal only.

Link to Devin session: https://app.devin.ai/sessions/7eb127847ed44b0db184b320e1a6ab12
Requested by: @devalog

Co-Authored-By: will.kendall@buildwithfern.com <wpk235@gmail.com>
@devin-ai-integration devin-ai-integration Bot requested a review from devalog as a code owner May 14, 2026 21:18
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

| `code_block_feedback_opened` | User opened the feedback prompt on a code block. | Code block context |
| `code_block_feedback_submitted` | User submitted feedback on a code block. | Code block context |

## API Playground events
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] 'API Playground events' should use sentence-style capitalization.


This disables all analytics integrations configured in the `analytics` section of `docs.yml`, including Google Analytics 4, Google Tag Manager, PostHog, and any other providers.

## CLI and Dashboard events
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] 'CLI and Dashboard events' should use sentence-style capitalization.


## CLI and Dashboard events

The Fern CLI and [Dashboard](https://dashboard.buildwithfern.com) emit their own analytics events for internal product telemetry (command usage, onboarding funnels, billing events, etc.). These are not forwarded to your analytics providers and are used only by Fern for product improvement.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🚫 [vale] reported by reviewdog 🐶
[Microsoft.Contractions] Use 'aren't' instead of 'are not'.

@github-actions
Copy link
Copy Markdown
Contributor

devin-ai-integration Bot and others added 2 commits May 14, 2026 21:21
Co-Authored-By: will.kendall@buildwithfern.com <wpk235@gmail.com>
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
| `$pageview` | Fired on every route change. Includes the current URL. | PostHog, Segment |
| `$pageleave` | Fired when a user navigates away from a page. | PostHog |

Page view tracking is automatic and requires no additional configuration. GA4 and GTM handle their own page view tracking natively when configured.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'GTM' has no definition.


| Event | Description | Forwarded to |
| --- | --- | --- |
| `feedback_voted` | User clicked the thumbs up or thumbs down button. | PostHog, GA4, GTM |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'GTM' has no definition.

| Event | Description | Forwarded to |
| --- | --- | --- |
| `feedback_voted` | User clicked the thumbs up or thumbs down button. | PostHog, GA4, GTM |
| `feedback_submitted` | User submitted written feedback after voting. | PostHog, GA4, GTM |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'GTM' has no definition.

| --- | --- | --- |
| `feedback_voted` | User clicked the thumbs up or thumbs down button. | PostHog, GA4, GTM |
| `feedback_submitted` | User submitted written feedback after voting. | PostHog, GA4, GTM |
| `code_block_feedback_opened` | User opened the feedback prompt on a code block. | PostHog, GA4, GTM |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'GTM' has no definition.

| `feedback_voted` | User clicked the thumbs up or thumbs down button. | PostHog, GA4, GTM |
| `feedback_submitted` | User submitted written feedback after voting. | PostHog, GA4, GTM |
| `code_block_feedback_opened` | User opened the feedback prompt on a code block. | PostHog, GA4, GTM |
| `code_block_feedback_submitted` | User submitted feedback on a code block. | PostHog, GA4, GTM |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'GTM' has no definition.


| Event | Description | Forwarded to |
| --- | --- | --- |
| `api_playground_request_sent` | User sent a request from the API Explorer. | PostHog, GA4, GTM |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'GTM' has no definition.

| Event | Description | Forwarded to |
| --- | --- | --- |
| `api_playground_request_sent` | User sent a request from the API Explorer. | PostHog, GA4, GTM |
| `api_playground_request_received` | A response was received in the API Explorer. | PostHog, GA4, GTM |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'GTM' has no definition.


| Event | Description | Forwarded to |
| --- | --- | --- |
| `not_found` | A visitor hit a 404 page. | PostHog, GA4, GTM |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'GTM' has no definition.

devin-ai-integration Bot and others added 5 commits May 18, 2026 22:13
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
…sing provider cards

Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
| --- | --- | --- |
| `not_found` | A visitor hit a 404 page. | PostHog, GA4, GTM |

## CLI and Dashboard events
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] 'CLI and Dashboard events' should use sentence-style capitalization.

@devalog devalog merged commit 21855e5 into main May 18, 2026
4 checks passed
@devalog devalog deleted the devin/1778793395-analytics-events-reference branch May 18, 2026 22:54
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