Choose your platform below to get started with error tracking installation.
Install error tracking with PostHog
Last updated:
|Questions? Ask Max AI.
It's easier than reading through 798 pages of documentation
Community questions
Was this page useful?
Next article
Web error tracking installation
Option 1: Add the JavaScript snippet to your HTML Recommended Option 2: Install via package manager Start by installing PostHog with the package manager of your choice: And then include it with your project API key and host (which you can find in your project settings ): See our framework specific docs for Next.js , React , Vue , Angular , Astro , Remix , and Svelte for more installation details. By default, the JavaScript Web library only loads the core functionality. It lazy-loads…