Index of every page on this site: llms.txt
All skills
hardikpthv avatar

/google-analytics-onboarding-basic

@53afcbc
Run it yourself

Use when setting up Google Analytics 4 (GA4) for the first time on a website, web app, or mobile app (Android/iOS) — creating a Google Analytics account, property, and data stream; installing the Google tag (gtag.js) or wiring the Firebase SDK for mobile; turning on enhanced measurement; configuring events and key events (formerly "conversions"); setting data retention; handling EEA consent; or linking Google Ads/BigQuery/Search Console. Use whenever someone wants to add analytics, measurement, or tracking to their app or site, asks "how do I set up Google Analytics / GA4," or needs a Measurement ID (G-XXXXXXXXXX).

Use this Skill: https://skilld.dev/gh/hardikpthv/agent-skills/google-analytics-onboarding-basic

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈165 tokens for metadata: the name and description. ≈1.6k when used: this file. ≈2.1k more on demand in 3 files.

Description uses 8.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈658 characters, or 8.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Google Analytics Onboarding (Basic)

Overview

Take a website or app from zero to GA4 collecting data you can trust, following Google's official process. This skill is the map and the SOP: the right order, the web-vs-mobile fork that trips everyone up, the settings people forget, and the official links to confirm today's details.

Core principle: Google reorganizes the GA Admin UI and renames things constantly (e.g. "Conversions" became Key events in 2024). This skill carries last-known labels and values, but you must open the live official page and re-verify before trusting a specific path or name. Treat references/official-links.md as the source of truth, not this file.

This is the Basic tier: you guide a human through the GA and Firebase consoles. For hands-on automation — driving the GA Admin console with the Playwright MCP and scripting property/stream/key-event setup via the Admin API — use google-analytics-onboarding-pro.

When to use

  • "Set up Google Analytics / GA4 on my site or app"
  • Creating a GA account, property, or data stream; finding the Measurement ID
  • Installing the Google tag (gtag.js), wiring GA through Google Tag Manager, or adding the Firebase SDK to an Android/iOS app
  • Turning on enhanced measurement, defining events, or marking key events
  • Setting data retention, handling EEA consent, or linking Google Ads / BigQuery / Search Console

Not for: building dashboards/analysis inside GA4, ad-campaign setup in Google Ads, or non-Google analytics (Mixpanel, Amplitude, PostHog — different tools).

Learn this first: the model

Get these four right and the rest follows:

  • Account → Property → Data stream. An account is the top container (a company); a property is one product/brand's dataset; a data stream is a single source feeding it (one web, one Android, one iOS). Best practice: one property, ≤3 streams (web + Android + iOS) — not a separate property per platform.
  • The web/mobile fork. Web is measured with the Google tag (gtag.js) or via GTM, identified by a Measurement ID G-XXXXXXXXXX. Mobile (Android/iOS) is measured through Firebase — the Firebase SDK with Google Analytics, configured by google-services.json / GoogleService-Info.plist. gtag.js does nothing for a native app.
  • Events are the data. Four kinds: automatically collected, enhanced measurement (web, no code), recommended (predefined names you send), and custom (your own). Gate reporting on events, not page URLs.
  • Key events (renamed from "Conversions" on 2024-03-21) are the events that matter to the business. You mark them in GA4; a Google Ads conversion is then created from a key event. Mark them or your "conversions" stay empty.

First: re-verify the volatile bits

What Why it bites Re-verify
Admin UI paths (Data streams, Data retention, Consent) Google moves/renames panels often the official setup pages
"Key events" vs "Conversions" label Renamed 2024; old guides mislead support.google.com/analytics/answer/9267568
Data retention default Defaults to 2 months — usually wrong support.google.com/analytics/answer/7667196
Consent Mode v2 (EEA) EEA users drop from audiences/ads without it developers.google.com/tag-platform/security/guides/consent

Full annotated list: references/official-links.md.

The onboarding sequence

Follow the ordered guide in references/onboarding-checklist.md. The phases:

  1. Create the account (or reuse one) — name it, set data-sharing.
  2. Create the property — reporting time zone, currency, industry; accept ToS. (Time zone/currency aren't retroactive — set them right the first time.)
  3. Add a data stream — Web (enter URL) or App (Android/iOS, which auto-links a Firebase project).
  4. Install collection — web: paste the Google tag in <head> (or deploy via GTM / CMS); mobile: add the Firebase config file + Firebase SDK with Analytics. Pick one delivery path per stream.
  5. Enhanced measurement & events — leave enhanced measurement on (web); add recommended/custom events for the actions you care about. See references/data-streams-and-sdk.md.
  6. Mark key events — flag the business-critical events.
  7. Data retention & consent — set retention to 14 months; configure Consent Mode v2 if you have EEA users.
  8. Verify — confirm hits in Realtime and DebugView before declaring done.
  9. (Optional) Link products — Google Ads, BigQuery, Search Console.

Quick reference

Item Last-known detail (re-verify!)
Web measurement Google tag (gtag.js) or GTM; Measurement ID G-XXXXXXXXXX
Mobile measurement Firebase SDK + Google Analytics (never gtag.js)
Mobile config file google-services.json (Android) / GoogleService-Info.plist (iOS)
Conversions now called Key events (since 2024-03-21)
Data retention default 2 months → set to 14 months
EEA requirement Consent Mode v2 (ad_user_data, ad_personalization)
Verify with Realtime report + DebugView

Common mistakes

  • Trusting this file's labels/paths without re-checking the live page — the Admin UI drifts. Always re-verify.
  • Expecting the Google tag (gtag.js) to track a mobile app — native apps need the Firebase SDK.
  • Double-counting — firing gtag.js and a GA4 tag in GTM for the same property. Use one path.
  • Leaving data retention at 2 months — set 14 so Explorations keep history.
  • Forgetting to mark key events — events flow but "conversions" stay empty in GA4 and Ads.
  • Skipping Consent Mode v2 in the EEA — EEA users silently drop out of audiences and ad data.
  • One web stream per domain instead of one stream with cross-domain measurement — breaks sessions.
  • Declaring success without checking Realtime/DebugView.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is a collection of instructional documents and checklists for manual setup of Google Analytics 4. It contains no executable code, tool definitions, or automated actions, and all external links point to official Google documentation.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 53afcbc. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 5 months ago

README badge

README badge for hardikpthv/agent-skills/google-analytics-onboarding-basic