agentleFS
arcbaslowarcbaslow/google-analytics-agent/skills/ga4-funnel/SKILL.md

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'.

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
  1. Very specific:

    If the user did not specify --steps or --preset, propose a funnel based on what events fire on the property and ask for confirmation.

    line 18
  2. Very specific:

    Default 28 days. Override with --days N.

    line 41

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GA4 Funnel Analysis

Process

  1. Verify auth: python scripts/ga4_auth.py --check
  2. If the user did not specify --steps or --preset, propose a funnel based on what events fire on the property and ask for confirmation.
  3. Validate event coverage with the events script: python scripts/ga4_events.py --property <id> --check-events <step1,step2,...> --days 7
  4. Spawn the ga4-funnel agent with the property ID and validated step list.
  5. 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 against add_payment_info. If the count is within 10% of purchase, 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.