Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/nextjs/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ LOCATION: Wherever other providers are, or the components folder
==============================
Changes:
- Create a PostHogProvider component that will be imported into the layout file.
- Make sure to include the defaults: '2025-05-24' option in the init call.

Example:
--------------------------------------------------
Expand Down Expand Up @@ -147,6 +148,7 @@ LOCATION: Wherever the root _app.${
Changes:
- Initialize PostHog in _app.js.
- Wrap the application in PostHogProvider.
- Make sure to include the defaults: '2025-05-24' option in the init call.

Example:
--------------------------------------------------
Expand Down Expand Up @@ -251,6 +253,7 @@ Changes:
language === 'typescript' ? 'ts' : 'js'
} in any other file; Next.js will automatically handle it.
- Do not modify any other pages/components in the Next.js application; the PostHog client will be automatically initialized and handle all pageview tasks on its own.
- Make sure to include the defaults: '2025-05-24' option in the init call.

Example:
--------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions src/react/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ LOCATION: Wherever the root of the app is
==============================
Changes:
- Add the PostHogProvider to the root of the app in the provider tree.
- Make sure to include the defaults: '2025-05-24' option in the init call.

Example:
--------------------------------------------------
Expand Down
Loading