Actions27
- Account Actions
- Built-In Variable Actions
- Client Actions
- Container Actions
- Destination Actions
- Environment Actions
Container → Snippet Container
AI-generatedOverview
This node operation retrieves the tagging snippet for a specified Google Tag Manager (GTM) container. It is useful for users who want to obtain the GTM container snippet code to embed in their websites or applications for tag management purposes.
Use Case Examples
- A user wants to get the GTM snippet code for a specific container to add it to their website's HTML.
- A developer automates the retrieval of GTM container snippets for multiple containers to streamline deployment.
Properties
| Name | Meaning |
|---|---|
| Account ID | The GTM Account ID to identify the account containing the container. |
| Container ID | The GTM Container ID for which the snippet is to be retrieved. |
| Optional Query Parameters | Additional optional parameters to customize the API request, such as pagination or filtering options. |
Output
JSON
snippet- The tagging snippet code for the specified GTM container.
Dependencies
- Google Tag Manager API OAuth2 credentials
Troubleshooting
- Ensure that the Account ID and Container ID are provided; missing these will cause errors.
- Verify that the OAuth2 credentials for Google Tag Manager API are correctly configured and valid.
- Check that the operation name is correctly set to 'containersSnippet' to avoid unknown operation errors.
Links
- Google Tag Manager API - Get Container Snippet - Official documentation for retrieving the tagging snippet of a GTM container via the API.