Back to blog
Tutorial4 min

How to set up PostHog link tracking in 5 minutes

Step-by-step guide to forwarding click events from getowl to PostHog for unified marketing analytics. Every click, every conversion, one dashboard.

getowl Team·Developer Relations
May 10, 2026

PostHog is one of the best open-source analytics platforms for tracking product and marketing events. getowl's native PostHog integration lets you forward every link click as a PostHog event — so you can build funnels, measure attribution, and track conversions in one place.

Here's how to set it up in under 5 minutes.

Step 1: Get Your PostHog API Key

In PostHog, go to Settings → Project → Project API Key. Copy the key — it looks like phc_xxxxxxxxxxxx.

Step 2: Connect in getowl

  1. Go to Settings → Integrations in your getowl workspace
  2. Click PostHog
  3. Paste your API key
  4. (Optional) Set a custom host if you self-host PostHog
  5. Click Save

Step 3: Verify

Click any of your getowl links. Within 30 seconds, you should see a link_clicked event in PostHog with these properties:

  • short_code — The getowl short code
  • destination_url — Where the user was redirected
  • country — Visitor's country
  • device — mobile, desktop, or tablet
  • referrer — Where the click came from
  • All UTM parameters attached to the link

Step 4: Build Funnels

Now you can create funnels in PostHog like:

  1. link_clicked (from getowl)
  2. page_viewed (your landing page)
  3. sign_up_completed (your product)

This gives you true click-to-conversion attribution for every link you share.

Pro Tips

  • Use getowl's UTM templates to ensure consistent parameter naming
  • Create PostHog cohorts based on short_code to segment by campaign
  • Set up PostHog alerts for unusual click patterns (fraud detection)
tutorialposthoganalyticsintegrationsetup-guide