gtm-triggers

Configure Google Tag Manager triggers with conditions, exceptions, and RegEx patterns.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of configuring Google Tag Manager triggers, ensuring accurate and comprehensive tracking of user interactions. It eliminates guesswork in setting up conditions, exceptions, and RegEx patterns, allowing marketers and analysts to capture precise data without developer intervention.

Core Features & Use Cases

  • Comprehensive Trigger Types: Guidance on Page View, Click, Form Submission, Scroll Depth, Element Visibility, Custom Event, Timer, and History Change triggers.
  • Advanced Condition Logic: Learn to use variables, operators, and RE2 RegEx patterns to create highly specific trigger conditions and exceptions.
  • Debugging & Best Practices: Provides insights into common pitfalls, naming conventions, and optimization strategies for robust trigger implementation.
  • Use Case: You need to track every click on a specific "Add to Cart" button across your e-commerce site, but only on product detail pages. Use this skill to configure a precise GTM click trigger with a RegEx condition for the page path, ensuring only relevant clicks are tracked.

Quick Start

Create a Google Tag Manager trigger to fire a tag when a user clicks any button with the CSS class 'cta-button' on any page.

Frequently Asked Questions about gtm-triggers

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

FAQPage Schema
How do I set up Google Tag Manager triggers to track specific user interactions reliably?

GTM triggers fire tags based on user actions like clicks, form submissions, and page views. Configure triggers by selecting a trigger type, defining conditions using variables and operators, and applying RegEx patterns to match specific page paths or element attributes. This ensures tags fire only when your tracking conditions are met, eliminating unreliable tag firing.

What's the difference between trigger conditions and exceptions in GTM?

Conditions determine when a trigger fires using AND/OR logic and variable matching. Exceptions prevent a trigger from firing in specific scenarios. Together, they enable precise conditional firing—for example, firing a click trigger on all product pages except the homepage by adding an exception for the homepage URL pattern.

Can I use RegEx patterns to create more specific GTM triggers?

Yes, GTM supports RE2 RegEx matching within trigger conditions. RegEx patterns let you match complex page paths, element classes, or data attributes without creating separate triggers. For example, use a RegEx condition to fire a click trigger only on buttons with CSS classes matching 'cta-.*', capturing all call-to-action button variants.

How do I track different types of user interactions with a single GTM trigger setup?

GTM offers specialized trigger types for page views, clicks, form submissions, scroll depth, element visibility, custom events, timers, history changes for SPAs, and JavaScript errors. Select the trigger type matching your interaction, configure its conditions using auto-event variables, and apply debugging workflows to verify the tag fires correctly.

What are common mistakes when configuring GTM triggers and how do I avoid them?

Common pitfalls include overly broad trigger conditions that fire unintentionally, incorrect variable matching, and missing exceptions. Follow naming conventions for clarity, test conditions in the GTM debugger before publishing, and use exceptions to exclude undesired scenarios. Optimize performance by being specific with RegEx patterns and conditions.

Do I need developer help to set up Google Tag Manager triggers?

No. GTM triggers use a visual interface with variables, conditions, and RegEx matching that marketers and analysts can configure independently. For custom event tracking, developers may need to fire events from your website code, but the trigger configuration itself requires no development skills.