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.

referencesdata-streams-and-sdk.md

≈600 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Data streams, the events model & IDs

Web vs mobile — the fork that matters

Web Mobile (Android/iOS)
Collector Google tag (gtag.js) or GTM Firebase SDK + Google Analytics
Identifier Measurement ID G-XXXXXXXXXX Firebase App ID (from the linked Firebase project)
Config snippet in <head> google-services.json / GoogleService-Info.plist + SDK
Auto events enhanced measurement (toggle, no code) automatically collected app events

GA for mobile runs through Firebase — creating an app data stream links a Firebase project, and the config file binds that app build to the GA4 property. There is no gtag.js path for native apps.

The four event types

  1. Automatically collected — fired by the tag/SDK with no setup (first_visit, session_start, screen_view, …).
  2. Enhanced measurement (web only) — extra web interactions toggled in the UI, no code (scroll, outbound click, site search, file download, video, form interactions).
  3. Recommended — predefined event names + parameters you implement to unlock specific reports (purchase, login, sign_up, …). Use the exact spec'd names or the reports stay empty.
  4. Custom — your own names/parameters when nothing above fits. Avoid reserved prefixes (ga_, google_, firebase_).

Gate analysis on events + parameters, never on URLs.

Key events (formerly Conversions)

A key event is an event you've marked as important to the business; it surfaces across GA4 reports. A Google Ads conversion is created from a key event and used for bidding. Renamed from "Conversions" on 2024-03-21; existing ones auto-migrated, history preserved. Mark key events in Admin → Key events — if you skip this, no conversions register.

IDs at a glance

  • Measurement ID G-XXXXXXXXXX — the web stream's gtag ID (goes in the tag/CMS field).
  • Stream ID — numeric internal ID of any stream (used by some APIs/configs).
  • Firebase App ID — per-app ID from the linked Firebase project (mobile only).

Server-side events

For backend/offline events (e.g. a purchase confirmed on your server), use the Measurement Protocol (GA4): an HTTPS POST with an api_secret you create under the data stream. Keep the api_secret server-side — never ship it in client code or paste it into chat.

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