Initial commit
This commit is contained in:
64
skills/gtm-setup/SKILL.md
Normal file
64
skills/gtm-setup/SKILL.md
Normal file
@@ -0,0 +1,64 @@
|
||||
---
|
||||
name: gtm-setup
|
||||
description: Expert guidance for Google Tag Manager container setup, installation, account management, workspaces, environments, and version publishing. Use when setting up new GTM containers, installing GTM snippets, managing workspaces, configuring environments, or publishing GTM versions.
|
||||
---
|
||||
|
||||
# GTM Container Setup & Management
|
||||
|
||||
## Overview
|
||||
This skill provides expertise for setting up and managing Google Tag Manager containers, including installation, workspace management, and deployment workflows.
|
||||
|
||||
## When to Use This Skill
|
||||
Invoke this skill when:
|
||||
- Setting up a new GTM container (web, mobile, server-side)
|
||||
- Installing GTM snippet code
|
||||
- Managing workspaces for different projects
|
||||
- Configuring environments (Development, Staging, Production)
|
||||
- Publishing GTM versions
|
||||
- Managing container permissions and user access
|
||||
- Setting up multiple containers on one site
|
||||
|
||||
## Container Types
|
||||
|
||||
### Web Containers
|
||||
- Install GTM snippet in `<head>` and `<body>`
|
||||
- Configure container for single-page applications (SPAs)
|
||||
- Set up multiple containers on one site
|
||||
- Manage container permissions and user access
|
||||
|
||||
### Server-Side Containers
|
||||
- Deploy to Cloudflare Workers, Google Cloud, or other platforms
|
||||
- Configure server-side clients and tags
|
||||
- Set up custom tag templates for server endpoints
|
||||
- Implement first-party data collection
|
||||
|
||||
### Mobile Containers
|
||||
- Configure Firebase integration
|
||||
- Set up mobile-specific triggers and variables
|
||||
|
||||
## Workspace Management
|
||||
- Use workspaces for different projects
|
||||
- Create versions with detailed notes
|
||||
- Compare versions and test in different environments
|
||||
- Maintain version history and rollback capability
|
||||
|
||||
## Publishing Workflow
|
||||
1. Create changes in workspace
|
||||
2. Test in Preview mode
|
||||
3. Create version with detailed notes
|
||||
4. Publish to appropriate environment
|
||||
5. Verify deployment
|
||||
|
||||
## References
|
||||
- **references/gtm-overview.md** - GTM fundamentals, architecture, account structure
|
||||
|
||||
## Integration with Other Skills
|
||||
- **gtm-general** - General GTM guidance and concepts
|
||||
- **gtm-tags** - Configure tags for tracking
|
||||
- **gtm-triggers** - Set up triggers for tags
|
||||
- **gtm-variables** - Create variables for dynamic data
|
||||
- **gtm-debugging** - Debug and test your GTM setup
|
||||
- **gtm-best-practices** - Follow GTM implementation best practices
|
||||
- **gtm-datalayer** - Implement data layer for tracking
|
||||
- **gtm-custom-templates** - Build custom templates
|
||||
- **gtm-api** - Programmatic container management
|
||||
59
skills/gtm-setup/references/gtm-overview.md
Normal file
59
skills/gtm-setup/references/gtm-overview.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# About Google Tag Manager
|
||||
|
||||
**Source**: https://developers.google.com/tag-platform/tag-manager
|
||||
**Extracted**: 2025-01-09
|
||||
|
||||
Google Tag Manager is a tag management system that lets you configure and deploy tags on your website or mobile app, from an easy-to-use web interface. You can use Tag Manager to optimize your tag deployment, troubleshoot configuration errors, and modify tags that are already deployed.
|
||||
|
||||
## Why Use Google Tag Manager
|
||||
|
||||
Here are some reasons to use Tag Manager:
|
||||
|
||||
- Support for tag organization.
|
||||
- Version control.
|
||||
- Support for multiple tag types, including the Google tag.
|
||||
- Community-developed tag templates.
|
||||
- Enterprise collaboration.
|
||||
- Security features.
|
||||
|
||||
## Deploy for Web Pages
|
||||
|
||||
Use Tag Manager to manage tags (such as measurement and marketing optimization JavaScript tags) on your site. Without editing your site code, use Tag Manager to add and update Google Ads, Google Analytics, Floodlight, and third-party tags.
|
||||
|
||||
**Related:** [Get started for websites](https://developers.google.com/tag-platform/tag-manager/web)
|
||||
|
||||
## Deploy for Mobile Apps
|
||||
|
||||
Use Google Tag Manager to manage analytics and advertising tools in your apps without having to rebuild and resubmit the applications' binaries to app marketplaces.
|
||||
|
||||
**Related:**
|
||||
- [Get started for Android](https://developers.google.com/tag-platform/tag-manager/android/v5)
|
||||
- [Get started for iOS](https://developers.google.com/tag-platform/tag-manager/ios/v5)
|
||||
|
||||
## Server-Side Tagging
|
||||
|
||||
Server-Side Tagging allows you to move tag code off of your website or app and into the Cloud. Server-Side Tagging can help you improve the performance and security of your website or mobile app while serving all dependent assets from your own domain.
|
||||
|
||||
**Related:** [Get started with Server-Side Tagging](https://developers.google.com/tag-platform/tag-manager/server-side)
|
||||
|
||||
## Create Custom Templates
|
||||
|
||||
Build your own tag and variable templates in Tag Manager. Submit templates to the Community Template Gallery and make them available worldwide.
|
||||
|
||||
**Related:**
|
||||
- [Quick start guide](https://developers.google.com/tag-platform/tag-manager/templates)
|
||||
- [Submit templates to the Community Template Gallery](https://developers.google.com/tag-platform/tag-manager/templates/gallery)
|
||||
|
||||
## Automate Configuration with the REST API
|
||||
|
||||
The Google Tag Manager API provides access to Tag Manager configuration data for an authorized user. Use the API to manage accounts, containers and container versions, tags, rules, triggers, variables, and user permissions.
|
||||
|
||||
**Related:** [Get started with the REST API](https://developers.google.com/tag-platform/tag-manager/api/v2/devguide)
|
||||
|
||||
## Additional Resources
|
||||
|
||||
For more information about Tag Manager features and benefits, visit the following resources:
|
||||
|
||||
- [Product site](https://marketingplatform.google.com/about/tag-manager/)
|
||||
- [Help center](https://support.google.com/tagmanager/)
|
||||
- [Help community](https://support.google.com/tagmanager/community)
|
||||
Reference in New Issue
Block a user