AddThisFeature

Event Tracking

Know what people actually do in your app.

moderate Analytics

What it adds

A consistent event tracking layer, wired to the actions that matter.

What your agent is told to do

4
  1. 1

    Define a naming convention before you write a single event. 'object_action' (user_signed_up, project_created) stays sane at scale; ad-hoc names do not.

  2. 2

    Track the handful of events that map to your funnel. Tracking everything produces noise nobody reads.

  3. 3

    Wrap the analytics vendor behind one internal function so you can swap or add providers without touching call sites.

  4. 4

    Track server-side where correctness matters — ad blockers eat client-side events.

Edge cases it handles

5
  • Never send PII (emails, names, raw addresses) into analytics payloads without an explicit decision — it's a compliance problem.
  • Respect Do Not Track and any consent the user gave or withheld.
  • A failing analytics call must never break the user's action.
  • Don't double-count: a client event plus a server event for the same action inflates everything.
  • Bots and internal staff traffic should be excluded.

Definition of done

8
  • Events follow one documented naming convention.
  • The vendor sits behind a single internal wrapper.
  • Revenue- and funnel-critical events are tracked server-side.
  • No PII is sent without an explicit decision.
  • Consent and Do Not Track are respected.
  • A failed analytics call never breaks the app.
  • The feature matches the existing design system.
  • No existing functionality is broken.

Related features

How it works

  1. 1

    Copy the link

    Grab the Markdown instruction URL for this feature.

  2. 2

    Give it to your AI

    Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.

  3. 3

    It inspects, then implements

    Your agent reads your existing app first, then adds the feature to fit it.

Works with your stack

These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.

Need it tighter than that? Customize the feature and tell it exactly what you're running.