Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
38b888c
feat: typography refinements and PRODUCT.md
lmammino Nov 7, 2026
e23bbb3
fix(a11y): WCAG AA contrast for brand green and callout titles
lmammino Nov 7, 2026
98747b6
fix(responsive): no horizontal page scroll on phones, larger tap targets
lmammino Nov 7, 2026
05f07d9
fix(a11y): keyboard order, landmarks and heading structure
lmammino Nov 7, 2026
849effb
perf(home): replace React islands with static Astro + tiny vanilla JS
lmammino Nov 7, 2026
da4d7ad
fix(motion): honor prefers-reduced-motion and make the carousel pausable
lmammino Nov 7, 2026
4cffcd0
fix(typography): cap article text at ~70 characters per line
lmammino Nov 7, 2026
781305c
refactor(home): drop generic decoration
lmammino Nov 7, 2026
010f973
fix(copy): remove em dashes from site copy (house style)
lmammino Nov 7, 2026
793f096
chore(polish): theming fixes and CSS cleanup
lmammino Nov 7, 2026
e45ad32
chore: ignore .impeccable cache in prettier
lmammino Nov 7, 2026
9ac1115
fix(a11y): keyboard-operable chapters and final contrast/target fixes
lmammino Nov 7, 2026
cabc4cb
fix(copy): drive every book number from const.ts
lmammino Nov 7, 2026
60dab3e
feat(mobile): buy buttons above the fold, buy CTA in the mobile header
lmammino Nov 7, 2026
536478a
feat(home): reassurance line under every buy button pair
lmammino Nov 7, 2026
4b770ee
refactor(home): tighten the funnel
lmammino Nov 7, 2026
f504bbb
fix(typography): consistent section headings, expanding-row chevrons
lmammino Nov 7, 2026
11901e0
fix(polish): code card, screenshot crop, breadcrumb, dark buttons, 404
lmammino Nov 7, 2026
23b1699
feat: one buy-button style and an on-site free chapter confirmation
lmammino Nov 8, 2026
cac2357
fix(home): keep carousel dots centred next to the pause button
lmammino Nov 8, 2026
72336dd
feat(typography): one type system for the landing page and articles
lmammino Nov 8, 2026
08af0ea
chore: updated skills
lmammino Nov 8, 2026
a319edb
feat(layout): one spacing rhythm and frame; blog sidebar from lg
lmammino Nov 8, 2026
c235c27
feat(blog): images break out of the text measure like code blocks
lmammino Nov 8, 2026
c4403ec
chore: updated skills, added impeccable
lmammino Nov 8, 2026
5b655bf
feat(home): free chapter band in the book cover's world, with a succe…
lmammino Nov 8, 2026
b90f71f
refactor(home): free chapter form sits in the stream, no photo
lmammino Nov 8, 2026
256103a
feat(blog): generated social share card for every post
lmammino Nov 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 78 additions & 17 deletions .agents/skills/analytics/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: analytics
description: When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "track conversions," "attribution," "Mixpanel," "Segment," "are my events firing," or "analytics isn't working." Use this whenever someone asks how to know if something is working or wants to measure marketing results. For A/B test measurement, see ab-testing.
description: When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions "set up tracking," "GA4," "Google Analytics," "event tracking," "UTM parameters," "tag manager," "GTM," "analytics implementation," "tracking plan," "how do I measure this," "Mixpanel," "Segment," "are my events firing," or "analytics isn't working." Use this whenever someone asks how to know if something is working or wants to measure marketing results. For getting conversions into ad platforms (pixels, conversion tags, CAPI, server-side) and verifying they arrived, see conversion-tracking. For choosing attribution models, comparing multi-touch/MMM/incrementality, or reconciling conflicting numbers across tools, see attribution. For A/B test measurement, see ab-testing. Rate metrics divide matching closed windows — never full-period spend by partial-period results.
metadata:
version: 2.0.0
version: 2.2.2
---

# Analytics Tracking
Expand Down Expand Up @@ -44,6 +44,33 @@ Before implementing tracking, understand:
- Monitor for issues
- Clean data > more data

### 5. Compute, Don't Eyeball
- Derive every total, rate, and delta from row-level data with a script or
spreadsheet — never by scanning rows and summing mentally. One silently
dropped row corrupts every figure downstream of it.
- Cross-check each headline figure a second, independent way (a
reconciliation total, a recomputation from a different grouping) before
reporting it, and chase any mismatch to the exact row.
- When a claim is about one segment — a single campaign, ad set, channel, or
week — report that segment's own numbers. Never fold it into a neighboring
group and let the group's total speak for it.

### 6. Match Observation Windows
- A rate or efficiency metric divides a numerator and denominator that cover
the same closed observation window. Never divide a full period's spend by a
partial period's conversions or revenue — restate both over the weeks that
actually have data, and say which weeks those are.
- Cohort rates use only cohorts whose observation window has ended. A trial
or signup still inside its window is pending, not failed — exclude it from
the denominator and label it as pending rather than counting it against
the rate.

### 7. Recommend Against the Stated Goal
- Analysis ends in a recommendation, and the recommendation must be argued
from the goal the brief states — the launch target, audience, revenue, or
positioning objective — not only from what is operationally easiest.
Name which stated goal each option serves and what it trades away.

---

## Tracking Plan Framework
Expand Down Expand Up @@ -86,6 +113,7 @@ checkout_payment_completed
- Include context in properties, not event name
- Avoid spaces and special characters
- Document decisions
- Keep provider-defined names when using automatic or recommended events (e.g. GA4 `click`, `view_search_results`, `purchase`). Map internal business names explicitly; naming a custom event does not make the provider collect it automatically.

---

Expand Down Expand Up @@ -142,10 +170,12 @@ checkout_payment_completed
4. Configure custom events
5. Mark conversions in Admin

### Custom Event Example
### Event Example

```javascript
gtag('event', 'signup_completed', {
// GA4's recommended sign_up event, not a custom name, so it feeds built-in reports.
// Your tracking plan can still call this signup_completed; map the name explicitly.
gtag('event', 'sign_up', {
'method': 'email',
'plan': 'free'
});
Expand Down Expand Up @@ -187,15 +217,44 @@ dataLayer.push({
|-----------|---------|---------|
| utm_source | Traffic source | google, newsletter |
| utm_medium | Marketing medium | cpc, email, social |
| utm_campaign | Campaign name | spring_sale |
| utm_content | Differentiate versions | hero_cta |
| utm_term | Paid search keywords | running+shoes |
| utm_campaign | Campaign name | spring-sale |
| utm_content | Differentiate versions | hero-cta |
| utm_term | Paid search keywords | running-shoes |

### Naming Conventions
- Lowercase everything
- Use underscores or hyphens consistently
- Be specific but concise: `blog_footer_cta`, not `cta1`
- Document all UTMs in a spreadsheet
- **Lowercase everything.** GA4 treats `LinkedIn` and `linkedin` as two sources, and the split never merges back.
- **Hyphens between words.** No spaces, underscores, or `+`. Pick one separator for the whole company; this skill uses hyphens.
- **One spelling per source.** `linkedin`, never also `li` or `linkedin.com`. Keep the allowed values in a shared sheet and build links from it.
- **No personal data.** Never put emails, names, phone numbers, or user IDs in a UTM. They land in analytics reports and in referrer logs, and Google's terms prohibit sending PII to GA4.
- **Specific but short:** `blog-footer-cta`, not `cta1`.
- **Test the final URL.** Shorteners and redirects can drop or double parameters. Click the live link and check the landing URL before the campaign ships.

### UTM Patterns by Partner Type

Partner links break most often because each deal gets named on the spot. Fix the pattern per partner type once: `utm_medium` names the kind of deal, `utm_source` names who sent the traffic.

| Partner type | utm_source | utm_medium | utm_campaign | utm_content |
|---|---|---|---|---|
| Newsletter | `{partner}` (one per partner, across all their publications) | `newsletter` | `{partner}-{publication}-{yyyy}-{mm}` | `{placement}-{yyyy-mm-dd}` |
| Creator (YouTube, LinkedIn, TikTok) | `{platform}` | `creator` | `{creator}` | `{post-date}` or the video ID |
| Podcast | `{podcast}` | `podcast` | `{podcast}-{yyyy}-{mm}` | `{spot}-{yyyy-mm-dd}` (pre-roll, mid-roll) |
| Affiliate | `{partner}` | `affiliate` | `{partner}-affiliate` | placement, if they have several |
| Community | `{community}` | `community` | `{community}-{program}` | the channel or post, if known |

- **Use `creator` as the medium for paid creator deals**, not `social` (which mixes them with your organic posts) or `video` (which mixes them with paid video ads). The platform goes in `utm_source`.
- **One link per placement.** A newsletter that runs you on two dates gets two links, so each date's clicks stay separate. The monthly `utm_campaign` rolls them up.
- **Add a custom channel group in GA4.** GA4's default grouping sends mediums like `newsletter`, `creator`, `podcast`, and `community` to Unassigned (only `affiliate` and `email` map to a default channel). Create a channel group with a rule per medium so partner traffic shows up as its own channels.
- Podcast and video links often aren't clickable, so pair the UTM link with a promo code or vanity URL. See **influencer-marketing** for the rest of partner measurement.

*The partner-type pattern is adapted from Wispr Flow's link-creator skill (MIT), published in the skills.marketing library.*

### Traffic From AI Assistants

You can't tag links that ChatGPT, Claude, Perplexity, Gemini, or Copilot put in their answers. Some of those visits arrive with a referrer (`chatgpt.com`, `perplexity.ai`) or an assistant-added `utm_source`; many arrive as direct, or come later through a branded search.

- Add a GA4 channel group rule that matches known assistant referrers and sources into an "AI assistants" channel, and update the list as new assistants appear.
- Treat that channel as the floor. Assistant-driven visits that show up as direct or branded search can be most of the effect, and they won't carry the referrer.
- For measuring the full effect (exposure, delayed visits, and longer attribution windows), see **ai-seo**. For reconciling it with other sources, see **attribution**.

---

Expand Down Expand Up @@ -289,21 +348,23 @@ dataLayer.push({

## Tool Integrations

For implementation, see the [tools registry](../../tools/REGISTRY.md). Key analytics tools:
For implementation, see the [tools registry](https://github.com/coreyhaines31/marketingskills/blob/main/tools/REGISTRY.md). Key analytics tools:

| Tool | Best For | MCP | Guide |
|------|----------|:---:|-------|
| **GA4** | Web analytics, Google ecosystem | ✓ | [ga4.md](../../tools/integrations/ga4.md) |
| **Mixpanel** | Product analytics, event tracking | - | [mixpanel.md](../../tools/integrations/mixpanel.md) |
| **Amplitude** | Product analytics, cohort analysis | - | [amplitude.md](../../tools/integrations/amplitude.md) |
| **PostHog** | Open-source analytics, session replay | - | [posthog.md](../../tools/integrations/posthog.md) |
| **Segment** | Customer data platform, routing | - | [segment.md](../../tools/integrations/segment.md) |
| **GA4** | Web analytics, Google ecosystem | ✓ | [ga4.md](https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/ga4.md) |
| **Mixpanel** | Product analytics, event tracking | - | [mixpanel.md](https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/mixpanel.md) |
| **Amplitude** | Product analytics, cohort analysis | - | [amplitude.md](https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/amplitude.md) |
| **PostHog** | Open-source analytics, session replay | - | [posthog.md](https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/posthog.md) |
| **Segment** | Customer data platform, routing | - | [segment.md](https://github.com/coreyhaines31/marketingskills/blob/main/tools/integrations/segment.md) |

---

## Related Skills

- **ab-testing**: For experiment tracking
- **conversion-tracking**: For getting conversions (including GA4 key events from forms and bookings) to ad platforms and GA4, and verifying they arrive
- **attribution**: For attribution models, multi-touch/MMM/incrementality, and reconciling conflicting numbers across tools (once tracking is live)
- **seo-audit**: For organic traffic analysis
- **cro**: For conversion optimization (uses this data)
- **revops**: For pipeline metrics, CRM tracking, and revenue attribution
27 changes: 27 additions & 0 deletions .agents/skills/analytics/evals/evals.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,33 @@
"Does not attempt to design the full experiment"
],
"files": []
},
{
"id": 7,
"prompt": "GA4 enhanced measurement is enabled. I filtered outbound_click, site_search and video_engagement and got zero, but DebugView shows 12 click events with outbound=true, 7 view_search_results, 6 video_start, 4 video_progress and 2 video_complete. Which reports should I build? Do I need to add custom events?",
"expected_output": "Identify the mismatched option labels/event names. Use click with outbound=true for the 12 outbound clicks, view_search_results for the 7 searches, and separate video_start/video_progress/video_complete reports for 6/4/2. Do not add custom duplicate events to fix a filter mismatch or sum all video events as unique views. Check enabled options, configured search query parameters, YouTube JS API support and DebugView; cross-domain measurement destinations do not produce outbound clicks.",
"assertions": [
"Uses actual enhanced-measurement event names instead of option labels",
"Filters click by outbound=true and reports 12 outbound clicks",
"Uses view_search_results and reports 7 searches",
"Separates 6 video starts, 4 progress events and 2 completions",
"Does not count all video events as unique views or create duplicate custom events",
"Mentions relevant enhanced-measurement configuration and DebugView checks"
],
"files": []
},
{
"id": 8,
"prompt": "Our GTM Custom JavaScript price variable parses .product-price text. USD $1,234.56 is tracked as 1, a European 1.234,56 display as 1.234, and missing prices become zero. How should we fix this without changing real free items?",
"expected_output": "Use the application numeric amount and explicit currency or a machine-readable unformatted decimal data-price attribute. Do not strip symbols or guess locale separators. Return null for missing/malformed/nonfinite values and skip or diagnose the monetary event; preserve canonical zero for free items. Test grouped US and localized European display strings, ordinary decimals and missing/invalid values.",
"assertions": [
"Uses numeric application data or canonical machine-readable decimal",
"Does not parse localized display strings or guess currency",
"Preserves explicit zero for free items",
"Missing or invalid amount is not converted to zero",
"Tests grouped and localized display controls"
],
"files": []
}
]
}
4 changes: 2 additions & 2 deletions .agents/skills/analytics/references/event-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ referrer: "https://google.com"
```
source: "google"
medium: "cpc"
campaign: "spring_sale"
content: "hero_cta"
campaign: "spring-sale"
content: "hero-cta"
```

**Product Context (E-commerce):**
Expand Down
16 changes: 10 additions & 6 deletions .agents/skills/analytics/references/ga4-implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ Detailed implementation guide for Google Analytics 4.
|-------|-------------|---------------|
| page_view | Page loads | Automatic |
| scroll | 90% scroll depth | Toggle on/off |
| outbound_click | Click to external domain | Automatic |
| site_search | Search query used | Configure parameter |
| video_engagement | YouTube video plays | Toggle on/off |
| click | Outbound link click (`outbound: true`); cross-domain measurement domains are excluded | Toggle on/off |
| view_search_results | Search results page with a configured search query parameter | Configure query parameters |
| video_start, video_progress, video_complete | Embedded YouTube start, progress and completion | Toggle on/off; JS API support required |
| file_download | PDF, docs, etc. | Configurable extensions |

Use these exact names in event filters and triggers. The option labels "outbound clicks", "site search" and "video engagement" are not automatic event names. For video, report starts, progress milestones and completions separately; adding all three counts double-counts a viewing journey. A custom event with one of the old labels needs its own implementation. Verify enabled options and observed parameters in DebugView before expecting data.

Contract: [Google enhanced measurement events](https://support.google.com/analytics/answer/9216061).

### Recommended Events

Use Google's predefined events when possible for enhanced reporting:
Expand Down Expand Up @@ -61,8 +65,8 @@ Reference: https://support.google.com/analytics/answer/9267735
### gtag.js Implementation

```javascript
// Basic event
gtag('event', 'signup_completed', {
// Recommended event (your plan's signup_completed maps to GA4's sign_up)
gtag('event', 'sign_up', {
'method': 'email',
'plan': 'free'
});
Expand Down Expand Up @@ -94,7 +98,7 @@ gtag('config', 'GA_MEASUREMENT_ID', {
### Google Tag Manager (dataLayer)

```javascript
// Custom event
// Internal event name; a GTM GA4 Event tag sends it to GA4 as sign_up
dataLayer.push({
'event': 'signup_completed',
'method': 'email',
Expand Down
10 changes: 8 additions & 2 deletions .agents/skills/analytics/references/gtm-implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,15 @@ function() {
return match ? match[2] : null;
}

// Get data from page
// Read a machine-readable amount, not the localized display text.
// Example: <span class="product-price" data-price="1234.56">$1,234.56</span>
function() {
var el = document.querySelector('.product-price');
return el ? parseFloat(el.textContent.replace('$', '')) : 0;
var raw = el ? el.getAttribute('data-price') : null;
if (raw === null || !/^(?:0|[1-9][0-9]*)(?:\.[0-9]+)?$/.test(raw)) return null;
var amount = Number(raw);
return isFinite(amount) ? amount : null;
}
```

For monetary tracking, prefer the numeric amount and currency from the application data layer. If a DOM variable is needed, have the application render `data-price` as an unformatted, non-negative decimal in major currency units; pass its currency separately. Do not infer the amount or currency from presentation text: `parseFloat` turns `$1,234.56` into `1` after removing `$`, and localized separators have different meanings. A missing or invalid amount returns `null`, so skip that monetary event or diagnose it before sending; reserve `0` for an explicitly free item.
14 changes: 13 additions & 1 deletion .agents/skills/community-marketing/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: community-marketing
description: "Build and leverage online communities to drive product growth and brand loyalty. Use when the user wants to create a community strategy, grow a Discord or Slack community, manage a forum or subreddit, build brand advocates, increase word-of-mouth, drive community-led growth, engage users post-signup, or turn customers into evangelists. Trigger phrases: \"build a community,\" \"community strategy,\" \"Discord community,\" \"Slack community,\" \"community-led growth,\" \"brand advocates,\" \"user community,\" \"forum strategy,\" \"community engagement,\" \"grow our community,\" \"ambassador program,\" \"community flywheel.\""
metadata:
version: 2.0.0
version: 2.0.2
---

# Community Marketing
Expand Down Expand Up @@ -98,6 +98,18 @@ Design for the flywheel from day one. Every decision should ask: *Does this acce

---

## Community Models & Scaling Phases

Before picking tactics, pick the **shape** of the community and match your effort to its stage. See **`references/community-models.md`** for:

- **The 4 community models** (plus the common blend) — Support-Driven (GreenPal), Product-Development (Ydata), Education/Enablement (LiveAgent), Founder-Led (Bento, Postaga) — each with a "best when…" fit test tied to a primary goal.
- **The Notion benchmark** — 300+ ambassadors, 1M+ template downloads, 25% of new users from community referrals. The north star for community-led growth at scale.
- **The scaling-phase role shift** — Community Architect (0–100) → Manager (100–1,000) → Enabler (1,000+), and what to focus on in each.

Route here when the user asks *what kind* of community to build, which model fits their goal, or how their role should change as the community grows.

---

## Platform Selection Guide

| Platform | Best For | Watch Out For |
Expand Down
14 changes: 14 additions & 0 deletions .agents/skills/community-marketing/evals/evals.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,20 @@
"Notes peer support must feel valued, not used"
],
"files": []
},
{
"id": 7,
"prompt": "We're a technical dev-tool startup, still tiny. Our users are opinionated engineers and their feedback basically drives our roadmap. What kind of community should we build, and how will running it change as we grow?",
"expected_output": "Should route to references/community-models.md. Should recommend the Product-Development model as the best fit — technical, opinionated users whose feedback shapes the roadmap; cite Ydata's Slack driving GitHub stars and product feedback as the real case. Should note that because they're still tiny, it will start Founder-Led (Bento/Postaga) with the founder showing up personally before systems can carry it. Should lay out the scaling-phase role shift: Community Architect at 0–100 (lay the foundation, do things that don't scale, know members by name, set culture), Community Manager at 100–1,000 (build systems and governance — rituals, moderation, onboarding), Community Enabler at 1,000+ (stand up ambassador programs and sub-communities so members run it). May reference Notion's benchmark (300+ ambassadors, 1M+ template downloads, 25% of new users from community referrals) as the north star for what community-led growth can become at scale. Should match effort to stage rather than running a small community like a large one.",
"assertions": [
"Routes to references/community-models.md",
"Recommends Product-Development model with Ydata case",
"Notes it starts Founder-Led while tiny",
"Describes the architect -> manager -> enabler role shift with member ranges",
"May cite the Notion ambassador benchmark",
"Emphasizes matching effort to stage"
],
"files": []
}
]
}
Loading
Loading