Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Next.js App Router Demo to PostHog Playground #1429

Closed
wants to merge 1 commit into from

Conversation

mavdotso
Copy link

Hey team!

I was integrating PostHog into my Next.js app and couldn't find an app-router demo, so I created one using docs and this tutorial.

With this PR, I'm adding a new demo project to the PostHog playground and including examples of client- and server-side event tracking.

Changes

  • Added a new directory nextjs-app to the playground
  • Implemented sample page examaples for client-side and server-side event tracking
  • Integrated PostHog provider and event tracking components for AppRouter

Features

  1. Client-side event tracking using the usePostHog hook
  2. Server-side event tracking using the PostHog Node.js library
  3. Integration of PostHog with the latest Next.js App Router
  4. Sample pages demonstrating client and server-side event tracking

Copy link

vercel bot commented Sep 23, 2024

@mavdotso is attempting to deploy a commit to the PostHog Team on Vercel.

A member of the Team first needs to authorize it.

@posthog-bot
Copy link
Collaborator

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

@posthog-bot
Copy link
Collaborator

This PR was closed due to lack of activity. Feel free to reopen if it's still relevant.

@posthog-bot posthog-bot closed this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants