Written version of this tutorial - https://posthog.com/tutorials/nextjs-...
Subscribe for more - https://www.youtube.com/@PostHog?sub_...
Get signup for PostHog for free - https://app.posthog.com/signup
More tutorials - https://posthog.com/tutorials
Questions? - https://posthog.com/questions
In this tutorial, we build an app using Next.js 13's app directory, and set up PostHog autocapture, pageview custom events, server-side capture, and feature flags.
Follow us on Twitter - / posthog
0:00 Intro
0:27 Create Next app
1:35 Add PostHog
6:45 Capturing pageviews as custom events
12:00 Server-side PostHog
14:51 Server-side feature flags
17:29 Outro