google-analytics-4

Guide GA4 implementation planning and configuration for websites and apps.

2|Updated Dec 12, 2024
One-click install
npx skills add https://github.com/liomoti/pirkei-avot-finder --skill google-analytics-4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-analytics-4
Source: https://github.com/liomoti/pirkei-avot-finder/tree/main/.kiro/skills/google-analytics-4
Command: npx skills add https://github.com/liomoti/pirkei-avot-finder --skill google-analytics-4

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GA4 integration guidance to install, configure, and validate Google Analytics 4 across websites and apps, replacing Universal Analytics and ensuring compliant data collection.

Core Features & Use Cases

  • Installation options: gtag.js or GTM.
  • Critical first-time setup: data retention, internal traffic filter, conversions, custom dimensions.
  • Event tracking: standard and custom events.
  • Consent Mode v2 for EU/UK users.
  • SPA considerations: manual page_view on route changes.
  • Debugging & validation: GA4 DebugView, Tag Assistant.
  • BigQuery export for raw data and advanced analysis.

Quick Start

Install GA4 on your site using gtag.js or GTM, then complete the critical first-time setup steps and verify data in DebugView.

Frequently Asked Questions about google-analytics-4

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install Google Analytics 4 and configure event tracking?

To install Google Analytics 4, add the gtag.js snippet or deploy via Google Tag Manager. Follow the setup guide to configure data retention, internal traffic filters, custom dimensions, and standard event tracking across your website or app.

What is GA4 Consent Mode v2 and when do I need it?

GA4 Consent Mode v2 is a framework that adjusts tag loading based on user consent choices. It is required for compliant data collection when your website or app serves users in the EU and UK regions.

How do I track page views in a Single Page Application using GA4?

Tracking page views in a Single Page Application requires sending manual page_view events to GA4 on route changes. Standard gtag.js or GTM setups do not automatically detect SPA navigation, so manual event triggers are necessary.

Does this GA4 implementation guide cover BigQuery export setup?

Yes, the guide includes steps to configure BigQuery export for Google Analytics 4. This allows you to export raw event data directly to BigQuery for advanced analysis and large-scale dataset processing.

What is the best way to validate GA4 tracking implementation?

Use GA4 DebugView and Tag Assistant to validate your tracking implementation. These tools monitor real-time event firing, verify custom event configurations, and ensure your setup accurately records user interactions.