Medium

PostHog Funnel Tracking Agent

Track every step of your conversion funnel in PostHog. See where users drop off, capture conversion events at each stage, and tag users who make it through.

Works with:PostHogPostHog

Free to start

1,000 credits included

No credit card required

Try this agent Book a demo

Setup in 10 min · Cancel anytime

Setup time

~10 min

Time saved

2-3 hrs/week

Difficulty

Medium

Tools

1 connected

How it works

1

Track Funnel Pages

Record page views at each stage of the funnel with URLs, titles, and traffic source data

2

Capture Conversions

Send conversion events when users complete actions at each stage with full metadata

3

Identify Converters

Tag users who convert with properties like plan selected, conversion date, and traffic source

4

Surface Drop-offs

Summarize where users abandon the funnel and recommend optimizations

Try asking

Track our signup funnel in PostHog: /home -> /pricing -> /signup -> /welcome for user maria@startup.io from a Google ad campaign
Set up funnel tracking for our e-commerce checkout: product page, cart, checkout, and order confirmation with conversion events at each step
Build a trial-to-paid conversion funnel in PostHog: track /trial-signup, /onboarding, /first-project, and /upgrade pages with user identification

View the agent prompt

See the full instructions this agent runs on — copy, edit, or customize it

Expand

The Prompt

Task

Use @PostHog/Track Page ViewName it "PostHog/Track Page View" and call it with @PostHog/Track Page View to record page views at each stage of a conversion funnel, @PostHog/Capture EventName it "PostHog/Capture Event" and call it with @PostHog/Capture Event to capture conversion events when users complete key actions at each stage, and @PostHog/Identify UserName it "PostHog/Identify User" and call it with @PostHog/Identify User to tag users who reach conversion milestones with properties like "converted", "funnel_stage", and "conversion_date". This builds a complete funnel tracking setup in PostHog that shows where users drop off and who converts.

Input

The user provides:

  1. The funnel stages with their corresponding page URLs (e.g., landing page -> pricing -> signup -> onboarding)
  2. Conversion events to capture at each stage (e.g., "pricing_viewed", "signup_started", "signup_completed")
  3. User identifiers for users moving through the funnel
  4. Optional: UTM parameters or traffic source context

Example: "Track our signup funnel: landing page at /home, pricing page at /pricing, signup form at /signup, and welcome page at /welcome. Capture conversion events at each step for user maria@startupName it "startup" and call it with @startup.io who came from a Google ad."

Context

Funnel Stage Tracking

  1. Use @PostHog/Track Page ViewName it "PostHog/Track Page View" and call it with @PostHog/Track Page View for each page in the funnel sequence
  2. Include properties with each page view: Page URL and title, funnel stage name and position, traffic source and UTM parameters, referrer URL
  3. Track pages in the order users encounter them to build an accurate funnel

Conversion Event Capture

  1. Use @PostHog/Capture EventName it "PostHog/Capture Event" and call it with @PostHog/Capture Event at each funnel transition
  2. Include conversion metadata: time spent on previous stage, entry source, any selections made
  3. Capture drop-off signals: "funnel_abandoned" if a user leaves without completing the current stage

User Identification at Conversion

  1. Use @PostHog/Identify User whenName it "PostHog/Identify User when" and call it with @PostHog/Identify User when a user converts or reaches a significant milestone
  2. Set conversion-related properties: funnel_completed, conversion_date, funnel_entry_source, plan_selected, time_to_convert

Output

Funnel Tracking Summary:

Funnel Definition: | Stage | Page | Conversion Event | Status | |-------|------|-----------------|--------| | 1. [Stage Name] | [URL] | [event_name] | Tracked |

Page Views Recorded:

  • [URL 1]: tracked with [properties]

Conversion Events Captured: | Event | Stage | Properties | Status |

User Identified:

  • User: [distinct_id]
  • Conversion status: [converted/in_progress/abandoned]
  • Properties updated: [list]

Funnel Insights:

  • Total stages tracked: [count]
  • Conversion path: [stage 1] -> [stage 2] -> ... -> [final stage]
  • Ready to build funnel visualization in PostHog

WHAT ARE YOU WAITING FOR?

Ready to build?

Stop duct-taping tools.

Stop writing playbooks no one follows.

Start building agents that actually do the work—and do it well.

Cotera: For people who think busywork is boring.

"This is the best product ever when it comes to shipping. Ten on ten recommended. I just can't wait to see what happens with this product."

Rebecca Blount

Director, Customer Success