PostHog Tutorial: Track What Your Shop Visitors Do
Quick answer PostHog is an open source analytics tool that records what visitors do on your site: page views, completed orders, and any event you name. This post installs the Node SDK and tracks six real shop orders against a local server. It also shows the one mistake that loses every event: exiting before the SDK flushes its queue. You ship a shop, orders come in, and someone asks what every shop owner asks: which pages do people visit before they buy, and where do they give up? Server logs show which pages were requested, but not that one visitor viewed three products, started a checkout, and then left. That gap is what event tracking fills: one named event per meaningful action, tied to the person who did it. PostHog is built for exactly that job, and it runs hosted or on your own server. This post installs the Node SDK, sends real events, and checks what arrived before you trust it with a live shop. What I would check before using it My first check is where the data lives. Pos...