ga4-gtm-integration

Guide GTM-based GA4 deployment with configuration tags, event tags, triggers, and dataLayer integration.

77|9|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/henkisdabro/claudecode-marketplace --skill ga4-gtm-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ga4-gtm-integration
Source: https://github.com/henkisdabro/claudecode-marketplace/tree/main/ga-suite/skills/ga4-gtm-integration
Command: npx skills add https://github.com/henkisdabro/claudecode-marketplace --skill ga4-gtm-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill delivers end-to-end GA4 integration using Google Tag Manager, including GA4 config, event tags, data layer mapping, and debugging workflows.

Core Features & Use Cases

  • GTM-GA4 Setup: Configuration tag, event tags, and trigger design.
  • Data Layer Integration: Map data layer pushes to GA4 event parameters.
  • Preview & Debug: GTM Preview mode and Tag Assistant workflows to validate data.

Quick Start

Create a GA4 Configuration tag in GTM, then add a GA4 event tag for a key action like purchase, mapping event parameters from Data Layer Variables.

Frequently Asked Questions about ga4-gtm-integration

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

FAQPage Schema
How do I set up GA4 tracking through Google Tag Manager?

GA4 setup via GTM requires creating a single GA4 configuration tag with your measurement ID, then adding event tags that map data layer variables to GA4 event parameters. Configure triggers to fire tags on specific user actions, and use GTM Preview mode to validate data before publishing.

How do I map my data layer to GA4 event parameters in GTM?

Create GTM variables that reference your data layer keys, then use those variables in GA4 event tags to populate event parameters. Ensure your data layer structure is consistent and each parameter maps to the correct GA4 event field for accurate tracking.

Can I run multiple GA4 configuration tags in one GTM container?

No. Enforce a single GA4 configuration tag per GTM container to avoid duplicate data and ensure consistent measurement. Use event tags to send specific actions to your GA4 property without additional configuration tags.

How do I debug GA4 events that aren't firing in GTM?

Use GTM Preview mode to inspect tag firing in real time and validate data layer structure. Tag Assistant workflow helps identify misconfigured triggers, unmapped variables, and parameter mismatches between your data layer and GA4 event definitions.

What's the best way to test GA4 integration before going live?

Test in GTM Preview mode by triggering user actions and confirming tags fire with correct parameters. Verify data layer pushes match your configuration, validate trigger conditions fire as expected, and confirm GA4 receives events with proper structure before publishing.

Do I need to define event parameters before sending them through GTM to GA4?

Yes. Define your event parameters in advance to ensure consistent naming and structure. Map each parameter to the corresponding data layer variable in your GTM event tag configuration so GA4 receives properly formatted data.