How to set up Next.js 13 app directory analytics, feature flags, and more
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

▶︎
Why You Should Be Using PostHog

▶︎
Next.js Tutorial 2026 (UPDATED) - Full Course - Start Your Next.js Journey Here

▶︎
Presswork — A New Way to Write, Manage and Publish (Episode 1: Introduction)

▶︎
How to set up analytics in React

▶︎
Add DETAILED Posthog Analytics to Next.js (cookie banners + more)

▶︎
We were wrong about product managers

▶︎
How To Debug React Apps Like A Senior Developer

▶︎
Add AMAZING Analytics to Next.js 15 in 8 Minutes (Replay, Rageclicks, Heatmaps, DAU/MAU)

▶︎
Investigating the Y Combinator unicorn that's building a cult

▶︎
How to set up Next.js A/B tests

▶︎
God Says:"I JUST CONFIRMED — ONLY YOU CAN SEE THIS LETTER"/God Message Now/God Message

▶︎
How To Build Feature Flags Like A Senior Dev In 20 Minutes

▶︎
NextJS Feature Flagging Made Easy
![PINK & ORANGE GRADIENT IN HD [3 HOURS]](https://i.ytimg.com/vi/6ih8zppfQSQ/hqdefault.jpg?sqp=-oaymwE9CNACELwBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Af4JgALQBYoCDAgAEAEYfyAsKBMwDw==&rs=AOn4CLDvw6mQM98bfl572zfE7r4GdUG8dg)
▶︎
PINK & ORANGE GRADIENT IN HD [3 HOURS]

▶︎
Make Your Website Better With PostHog Analytics

▶︎
HD Flower TV Screensaver , Framed Art Painting, TV Art - Nas Gallery

▶︎
Sentry + Next.js | Essential Error Monitoring

▶︎
Setting up Node.js & Express analytics, feature flags, and more

▶︎
Steve Sewell: Optimally using third-party services with Next.js

▶︎
