Task prompt · Coding
Add analytics events to my app without slowing it down
by Agent Yard TeamPlan and write lightweight, privacy-friendly event tracking for your app.
Use cases
- Plan and write lightweight, privacy-friendly event tracking for your app.
- When you already have a file and want the AI to work from it instead of starting from scratch.
- Reuse it as often as you like: fill in the blanks (what i want to learn, e.g. where users drop off) with new details and copy again.
- With Cursor, Claude Code, Codex and more, the AIs that support what this prompt needs.
Featured in: Best Claude Code prompts for building web apps.
How to use it
- Open Cursor or Claude Code in your terminal (or another AI listed here).
- Attach the file (PDF, Word, CSV or Excel), or paste its text into the prompt.
- Fill in the highlighted blank ([WHAT I WANT TO LEARN, E.G. WHERE USERS DROP OFF]) below, or edit them after pasting.
- Copy the prompt, paste it into the chat and send.
Fill in the blanks (optional)
Prompt
Here is my app code (attached). I want to understand [WHAT I WANT TO LEARN, E.G. WHERE USERS DROP OFF]. 1. Propose a short list of events (name, when it fires, properties). Keep it under 12. 2. Write the tracking code for [ANALYTICS TOOL OR "a simple /api/track endpoint"], loaded after the page is interactive. 3. Never send personal data like emails or names. 4. Show where each call goes in my code.
One email a week
The Weekly is presented byyour brandSponsored · openThe best new prompts and personas, nothing else.