analytics-setup

analytics-setup is a skill for Claude Code, Codex from ominou5/funnel-architect-plugin. It costs 33 tokens per session (1,045 once invoked), scanned A, original, MIT.

A setup guide for measuring website visits and actions with Google Analytics 4, Meta Pixel, and Google Tag Manager. It also covers conversion events and UTM campaign labels.

In plain words
What is it for?
Add tracking to funnel pages, record CTA clicks and form submissions, measure scroll depth, and preserve campaign information from links.
Why use it?
It helps identify where visitors come from and whether they click calls to action or submit forms.

Skill for Claude CodeCodex

Part of the funnel-architect-plugin plugin — 29 skills, 5 agents, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ominou5/funnel-architect-plugin/analytics-setup
Any agent
npx skills add ominou5/funnel-architect-plugin --skill analytics-setup
Clone the repo
git clone --depth 1 https://github.com/ominou5/funnel-architect-plugin

Made for: Claude Code, Codex.

Or install funnel-architect-plugin, the plugin that ships this one along with the rest of its 29 skills, 5 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analytics-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/ominou5/funnel-architect-plugin/analytics-setup.svg)](https://agentmods.dev/skills/ominou5/funnel-architect-plugin/analytics-setup)
Your own site
<a href="https://agentmods.dev/skills/ominou5/funnel-architect-plugin/analytics-setup"><img src="https://agentmods.dev/badge/skills/ominou5/funnel-architect-plugin/analytics-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,045 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00033 $0.01045
Opus 5 $0.00016 $0.00522
Sonnet 5 $0.00007 $0.00209
Haiku 4.5 $0.00003 $0.00104

Measured 4d ago against content hash 2caa639c48cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analytics-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analytics-setup/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Analytics Setup

Track everything. If you can't measure it, you can't improve it.

GA4 (Google Analytics 4)

Basic Installation

<!-- Place in <head> of every page -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX');
</script>

Custom Events for Funnels

// Track CTA clicks
document.querySelectorAll('.cta-primary').forEach(btn => {
  btn.addEventListener('click', () => {
    gtag('event', 'cta_click', {
      event_category: 'funnel',
      event_label: btn.textContent.trim(),
      page_title: document.title
    });
  });
});

// Track form submissions
document.querySelectorAll('form').forEach(form => {
  form.addEventListener('submit', () => {
    gtag('event', 'form_submit', {
      event_category: 'funnel',
      event_label: form.getAttribute('name') || 'unnamed',
      page_title: document.title
    });
  });
});

// Track scroll depth
let scrollMarks = [25, 50, 75, 100];
window.addEventListener('scroll', () => {
  const percent = Math.round((window.scrollY / (document.body.scrollHeight - window.innerHeight)) * 100);
  scrollMarks = scrollMarks.filter(mark => {
    if (percent >= mark) {
      gtag('event', 'scroll_depth', { event_category: 'engagement', event_label: mark + '%' });
      return false;
    }
    return true;
  });
});

Meta Pixel (Facebook)

<!-- Place in <head> -->
<script>
  !function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
  fbq('init', 'YOUR_PIXEL_ID');
  fbq('track', 'PageView');
</script>

Read the full file on GitHub · 143 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 143 lines · 33 tokens per session scan A 2caa639c48cb

Subscribe to this mod's changes

analytics-setup is a skill published in the GitHub repository ominou5/funnel-architect-plugin (79 stars, last pushed 6mo ago), licensed MIT. It adds 33 tokens to every session and 1,045 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

anti-slop-writing

Make writing sound like a person wrote it. Rewrites drafts that read as machine-generated, restores voice that AI editing flattened, and audits text for AI tells when asked. Use when a draft feels generic or corporate, when asked to de-slop or humanize text, when polishing anything an LLM helped write, before…

Kaos599/professional-skills · 111 tokens

technical-content-writer

Write technical content that sounds like a specific human wrote it - LinkedIn posts, blog posts, threads, newsletters, essays about engineering and infrastructure subjects. Derives a voice signature from exemplars before drafting, forces mechanism and numbers over adjectives, and runs an anti-slop gate before output.…

Kaos599/professional-skills · 76 tokens

landing-build

LandingForge build orchestrator — manufactures a SaaS, dev-tool, or B2C consumer-app landing page to a spec by running gated specialist phases 1-8 end to end, scoring the result and looping to ship. Phases 1-4 (strategy -> copy -> design -> build) each spawn an lp- agent, write an artifact to .landingforge/ /, and…

NmadeleiDev/landingforge · 197 tokens

landing-critique

Audit and 10-star-score ANY existing landing page (live URL or local path) against the same four-axis LandingForge rubric the generator targets. Inspects the rendered page with the bundled browser, delegates the Discoverability axis to claude-seo (with a labeled inline fallback), scores via the lp-scorer contract, and…

NmadeleiDev/landingforge · 107 tokens

landing-copy

Phase 2 of LandingForge, standalone — turn a committed strategy brief into full, section-by-section persuasive landing copy: every block keyed to the fixed section skeleton, tagged with the framework that produced it (PAS / BAB / house-voice), and cleared through the specificity linter so no reversible filler or…

NmadeleiDev/landingforge · 148 tokens

landing-design

Phase 3 of LandingForge, standalone — turn a committed strategy (brief.md) and the page's words (copy.md) into a committed visual system: ONE house mood (indie default, dev-tool-premium, or consumer-app flavor), ONE saturated accent, ONE display face, an OKLCH color ramp, a modular type scale, and a spacing scale.…

NmadeleiDev/landingforge · 168 tokens