google-analytics-4 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited google-analytics-4 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Applies to: Any website or web app | Updated: October 2026
A practical guide for implementing Google Analytics 4 (GA4) - covering installation, critical first-time setup, event tracking, e-commerce, consent, and advanced topics. Written for AI coding assistants: skip sections that don't apply to the user's setup.
Note: Universal Analytics (UA / GA3) was fully sunset in 2024. GA4 is the only current Google Analytics product.
Answer these questions before writing any code. They determine which sections apply.
Q: Are any of your visitors in the EU/EEA (European Economic Area), the UK, or Switzerland? Default: no - if yes, Consent Mode v2 setup is required (see Consent Mode v2)
Q: Do you run Google Ads (search, display, YouTube, or Shopping)? Default: no - if yes, ad consent signals matter for conversion tracking and which events you mark as key events and use as Ads conversions
Q: Is your site a single-page app (React, Vue, Angular, Next.js, etc.) where the URL changes without a full page reload? Default: check package.json for a client-side router (react-router-dom, vue-router, @angular/router, next, nuxt, @sveltejs/kit) - if found, assume SPA and apply the Single-Page Apps section automatically
Q: Do you need to track purchases or sales? Default: no - skip E-commerce Tracking if no
Q: Do you already have a GA4 property, or is this a fresh start? Default: fresh start - if fresh start, create a property at analytics.google.com before writing any code
Q: Do you use Google Tag Manager, or add the tracking code directly? Default: direct gtag.js - recommend GTM only if the user has a marketing team managing multiple tags
AI assistant: Use these answers to skip irrelevant sections. Do not implement Consent Mode unless the user confirms EEA, UK, or Swiss users, and do not implement e-commerce unless confirmed. If a SPA framework is detected, apply the SPA section and pick exactly one page_view approach (never manualpage_viewcalls while the Enhanced Measurement history setting is still on); do not addanonymize_ip, which is a no-op in GA4 (see Common Pitfalls).
This guide is split into reference files. Use the Section 0 answers to decide which apply, then read only those; skip the rest.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.