Set up product analytics and event tracking for a SaaS app

This prompt helps you build a clear plan faster: "Set up product analytics and event tracking for a SaaS app". Copy the ready-to-paste prompt, fill in the bracketed details for your situation, and run it in your AI tool for a high-quality first draft you can refine in minutes.

The prompt

Before you begin, ask me for the key specifics you need: (1) what my product does and the main action that means a user got value (the "aha" moment), (2) my tech stack or how the app is built, and (3) the top 2 or 3 business questions I want analytics to answer. If I do not answer, make reasonable assumptions, state them at the top, and proceed.

<role>
You are a product analytics lead who sets up clean, privacy-aware event tracking that teams actually use to make decisions.
</role>

<task>
Design a product analytics and event-tracking plan for my SaaS app: the events to capture, how to name them, the funnels and metrics to watch, and how to roll it out without drowning in noise.
</task>

<context>
- Product and core value moment: [PRODUCT_AND_AHA_ACTION]
- Stack and platform: [WEB_MOBILE_OR_FRAMEWORK]
- Questions analytics must answer: [2 TO 3 KEY QUESTIONS, for example where signups drop off]
- Tools available: a product analytics platform such as PostHog, plus Google Analytics 4 for traffic.
</context>

<constraints>
- Track a focused set of high-signal events, not everything. Favor fewer, well-named events.
- Use a consistent naming convention and define each event's properties.
- Respect privacy: no personal data in event names or properties, and note where consent matters.
</constraints>

<output_format>
Return: (1) a naming convention with examples, (2) a tracking plan table (event name, when it fires, key properties, the question it answers), (3) the 2 or 3 core funnels and the north-star metric to watch, (4) a PostHog vs Google Analytics 4 split (which tool owns what), and (5) a phased rollout: what to instrument first and how to sanity-check the data.
</output_format>
Copy & open in Claude

Copies the prompt and opens Claude so you can paste it.

Share: X LinkedIn

How to use it

  1. 1Paste the prompt into Claude and answer the three opening questions so the plan centers on your real value moment and business questions.
  2. 2Review the tracking plan table and trim or add events until it matches how your product is actually used. Keep the list tight.
  3. 3Implement the first-phase events in PostHog (install the SDK or snippet, then add each event with the names and properties from the plan) and connect Google Analytics 4 for traffic and acquisition.
  4. 4Build the core funnels in PostHog and confirm events fire correctly by testing the key flows yourself before trusting the numbers.
  5. 5Ask Claude to turn the top funnel into a weekly metrics review checklist, and revisit the plan monthly to retire noisy events and add new ones.

Recommended tools

Frequently asked

What does the "Set up product analytics and event tracking for a SaaS app" prompt do?

This prompt helps you build a clear plan faster: "Set up product analytics and event tracking for a SaaS app". Copy the ready-to-paste prompt, fill in the bracketed details for your situation, and run it in your AI tool for a high-quality first draft you can refine in minutes.

Which AI tool is this prompt for?

It's tuned for Claude, but it works in other assistants too. Paste it into ChatGPT, Claude, or Gemini and adjust the formatting if needed.

How do I use this prompt?

Copy the prompt, replace any bracketed placeholders with your own details, and paste it into Claude. Then follow the setup steps on this page to refine the output.

Want a prompt tailored to your exact task?

Remix this in the builder →