Google Tag Manager Implementation Guide

Free Verified 326 lines By majiayu000 Analytics

Description

Comprehensive Google Tag Manager guide covering container setup, tags, triggers, variables, data layer, debugging, custom templates, and API automation. Use when working with GTM implementation, configuration, optimisation, troubleshooting, or any GTM-related tasks.

What Claude Learns

  • When to Use This Skill
  • Container Setup
  • Basic Tag Configuration
  • Data Layer Push
  • Core Concepts
  • Tags, Triggers, and Variables

Installation

### Container Setup
1. Create a GTM account at [tagmanager.google.com](https://tagmanager.google.com)
2. Create a container (Web, iOS, Android, or Server)
3. Install the container snippet on your website
4. Configure tags, triggers, and variables
5. Test in Preview mode
6. Publish
See [setup.md](references/setup.md) for detailed installation instructions.
### Basic Tag Configuration
```javascript
// Example: GA4 Configuration Tag
Tag Type: Google Analytics: GA4 Configuration
Measurement ID: G-XXXXXXXXXX
Trigger: All Pages
```
See [tags.md](references/tags.md) for comprehensive tag documentation.
### Data Layer Push
```javascript
// Push custom event to data layer
window.dataLayer = window.dataLayer || [];
dataLayer.push({
'event': 'custom_event',
'category': 'engagement',
'action': 'button_click',
'label': 'CTA Button'
});
```
See [datalayer.md](references/datalayer.md) for data layer patterns.

Stack & Dependencies

JavaScript HTML REST API Google Analytics

Frequently Asked Questions

Is Google Tag Manager Implementation Guide free to use?
Yes u2014 Google Tag Manager Implementation Guide is free. Install it directly with one command (`npx mkt-skills install gtm`) or download the SKILL.md file and drop it into your `~/.claude/skills/` directory. No account, no sign-up, no license fee.
Download SKILL.md GitHub