How to set up analytics in Nuxt 3

Опубликовано: 26 Март 2026
на канале: PostHog
1,218
22

Written version of this video - https://posthog.com/tutorials/nuxt-an...
Subscribe for more -    / @posthog  
Get signup for PostHog for free - https://us.posthog.com/signup

More content like this - https://posthog.com/tutorials
Follow us on Twitter -   / posthog  

In this tutorial, we build a basic Nuxt app and then capture analytics such as pageviews and custom events using PostHog.

0:00 Intro
0:17 Create a new Nuxt app
1:17 Basic app setup
2:35 Installing PostHog
3:53 Creating a PostHog plugin
4:55 Capturing pageviews
5:55 Capturing custom events
6:55 Server-side analytics
8:53 Setting the correct distinct ID