Structured Google Tag Manager API reference for LLMs. Enables AI agents to automate tag management, configure triggers, and manage variables. Integrates with Claude, ChatGPT, and other LLM-based agents for operations teams.
git clone https://github.com/paolobietolini/gtm-api-for-llms.gitGTM API for LLMs provides a structured, machine-readable reference of the Google Tag Manager API designed specifically for large language models and AI coding agents. It enables AI systems to automate GTM container management, create and update tags, configure triggers, manage variables, and publish versions without ambiguity. The skill works with Claude Code, OpenAI Codex, and other compatible LLM agents, automatically activating when users request GTM API operations. It includes step-by-step execution guides, workflow algorithms, validation rules, and copy-paste request templates to help AI agents complete GTM tasks accurately. Operations teams benefit from faster GTM configuration and reduced manual API work through natural language prompts to their AI assistant.
Install the skill into Claude Code or OpenAI Codex by cloning the repository and copying the gtm-api folder to your skills directory. Verify installation by asking your AI assistant 'What skills are available?' or '/skills'. Once active, simply describe your GTM task in natural language—the skill automatically handles API operations.
Automate GA4 tag creation and configuration in GTM containers
Create custom event triggers and variable definitions via AI agent
Publish GTM container versions and manage workspace permissions programmatically
Validate GTM API requests before execution to prevent configuration errors
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/paolobietolini/gtm-api-for-llmsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I need to automate tag management for [COMPANY] in the [INDUSTRY] sector. Using the GTM API for LLMs, create a workflow to [SPECIFIC TASK] with the following [DATA]. Provide the API calls and expected responses.
# GTM API Workflow for [COMPANY] in the [INDUSTRY] Sector
## Objective
Automate the process of updating tag configurations for [SPECIFIC TASK] using the GTM API for LLMs.
## API Calls
1. **Get Current Tags**:
```json
{
"endpoint": "https://www.googleapis.com/tagmanager/v2/accounts/[ACCOUNT_ID]/containers/[CONTAINER_ID]/tags",
"method": "GET"
}
```
**Expected Response**: A list of current tags with their configurations.
2. **Update Tag Configuration**:
```json
{
"endpoint": "https://www.googleapis.com/tagmanager/v2/accounts/[ACCOUNT_ID]/containers/[CONTAINER_ID]/tags/[TAG_ID]",
"method": "PUT",
"body": {
"name": "Updated Tag for [SPECIFIC TASK]",
"type": "CLICK",
"parameters": [
{
"type": "TEMPLATE",
"key": "gaProperty",
"value": "UA-XXXXXX-Y"
}
]
}
}
```
**Expected Response**: Confirmation of the updated tag configuration.
## Next Steps
- Verify the updated tag configurations in the GTM interface.
- Monitor the performance of the updated tags.
- Document the changes for future reference.Deploy analytics and marketing tags without developer help
Auto-transcribe meetings and generate action items
Unlock data insights with interactive dashboards and collaborative analytics capabilities.
Free Accounting Software
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan