ga4-funnel
Skill0 starsChanged 6 months agoMITView on GitHub
GA4 step-by-step funnel analysis. Builds an N-step funnel from any list of event names, computes step conversion and drop-off rates, identifies the leakiest step, and supports breakdown by a single dimension. Use when user says 'funnel', 'drop-off', 'where are users dropping', 'conversion rate'.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ga4-audiencesSkill
- ga4-auditSkill
- ga4-contextSkill
- ga4-custom-defsSkill
- ga4-custom-reportSkill
- ga4-events-editSkill
- ga4-eventsSkill
- ga4-key-eventsSkill
- ga4-segment-defsSkill
- ga4-segmentsSkill
- ga4Skill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
If the user did not specify --steps or --preset, propose a funnel based on what events fire on the property and ask for confirmation.
- Very specific: line 41
Default 28 days. Override with --days N.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GA4 Funnel Analysis
Process
- Verify auth:
python scripts/ga4_auth.py --check - If the user did not specify
--stepsor--preset, propose a funnel based on what events fire on the property and ask for confirmation. - Validate event coverage with the events script:
python scripts/ga4_events.py --property <id> --check-events <step1,step2,...> --days 7 - Spawn the
ga4-funnelagent with the property ID and validated step list. - Return agent output with an optional follow-up offer.
Funnel inputs
--steps event1,event2,event3- arbitrary list of GA4 event names; the funnel runs in the listed order.--preset ecomm- convenience preset for the recommended e-commerce purchase funnel:view_item -> add_to_cart -> begin_checkout -> add_payment_info -> purchase.- Neither flag: the agent proposes a funnel based on which events fire on the property.
Optional checks
--check-postpayment(off by default): runs the post-payment heuristic againstadd_payment_info. If the count is within 10% ofpurchase, the result is a hypothesis to investigate; it neither proves order nor removes a step.--breakdown <dim>- funnel split by one dimension (e.g.deviceCategory,sessionDefaultChannelGroup).
Date range
Default 28 days. Override with --days N.
After analysis
Offer: "Want to break down the drop-off by segment? Use /ga4 segments <property-id>"
Funnel reports accept 2-10 unique steps and retain missing steps by default. --drop-missing explicitly changes the requested funnel. --check-postpayment is advisory and never removes steps. Validation uses the complete requested date window. Numbered API step names are normalized; breakdown rates use the named dimension and RESERVED_TOTAL rows, never summed segment populations. Missing totals or malformed rows produce an error instead of fabricated rates.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

