top of page
bottom of page
npm install posthog-js # OR yarn add posthog-js # OR pnpm add posthog-js import posthog from 'posthog-js' posthog.init('phc_xCwKO8T3Mt0sZjlDmo04xvOQ7iZHGj2fueTDghK3LjL', { api_host: 'https://us.i.posthog.com', person_profiles: 'identified_only' // or 'always' to create profiles for anonymous users as well } )