gtm-make-case

Generate GTM test case files from simplified instruction files.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/matsumuratk/gtm-autotester --skill gtm-make-case
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gtm-make-case
Source: https://github.com/matsumuratk/gtm-autotester/tree/main/.claude/skills/gtm-make-case
Command: npx skills add https://github.com/matsumuratk/gtm-autotester --skill gtm-make-case

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation of comprehensive Google Tag Manager (GTM) test cases by translating simple operational instructions into detailed, executable test scripts.

Core Features & Use Cases

  • Automated Test Case Generation: Converts make_case.md (operation steps only) into a full case.md with expected values for dataLayer, GTM events, and GA4 events.
  • Real-time Data Capture: Interacts with GTM preview mode to capture actual data and automatically populate expected values.
  • Use Case: A marketing analyst needs to create a new test suite for an e-commerce site's checkout flow. They provide a make_case.md with steps like "Add product to cart" and "Proceed to checkout." The Skill then generates a case.md with the actual dataLayer and GA4 events observed during these steps, ready for execution.

Quick Start

Use the gtm-make-case skill to generate a case.md file from the test folder located at tests/sample-ec-2.

Frequently Asked Questions about gtm-make-case

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

FAQPage Schema
How do I automate GTM test case generation for dataLayer and GA4 events?

To automate GTM test case generation, provide a simplified instruction file (`make_case.md`) containing operational steps. The Skill interacts with GTM preview mode to capture actual dataLayer, GTM event, and GA4 event payloads, populating them as expected values in a complete `case.md` file.

What is the best way to capture GA4 event payloads during GTM preview mode testing?

Capturing GA4 event payloads during GTM preview testing is handled by executing defined operational steps from an instruction file. The system automatically intercepts and records the actual GA4 event data, inserting these captured values directly into your generated test case file.

How do I handle dynamic values like transaction IDs when creating GTM test cases?

Handling dynamic values like transaction IDs in GTM test cases is managed through automatic dynamic value conversion. The Skill identifies changing values such as timestamps and transaction IDs, marking them as "arbitrary" while retaining fixed expected values in the output file.

Do I need a predefined instruction file to generate a GTM test case?

Yes, you need a predefined instruction file named `make_case.md` containing your operational steps. This file serves as the input, which the Skill processes to generate a comprehensive test case file (`case.md`) populated with actual observed data.

Can I test an e-commerce checkout flow with GTM preview mode automation?

Yes, you can test an e-commerce checkout flow by providing steps like "Add product to cart" in your instruction file. The Skill executes these steps in GTM preview mode, capturing the actual dataLayer and GA4 events to build a ready-to-use test case.