GTM: Import template from the community gallery
gtm_import_gallery_templateImports a Google Tag Manager community gallery tag or variable template into a workspace, enabling vendor pixels or consent banners after acknowledging template permissions.
Instructions
Imports a tag or variable template from the GTM community gallery into the workspace (e.g. consent banners like Cookiebot, usercentrics or vendor pixels). galleryOwner/galleryRepository = GitHub owner and repo of the template (shown on the gallery page at tagmanager.google.com/gallery). acknowledgePermissions=true confirms the template's permissions (loading scripts, setting cookies …); review them first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | GTM accountId (from gtm_list_accounts) | |
| gallerySha | No | Specific version (commit SHA); default latest | |
| containerId | Yes | GTM containerId, numeric | |
| workspaceId | Yes | Workspace ID (from gtm_list_workspaces / gtm_create_workspace) | |
| galleryOwner | Yes | GitHub owner of the gallery template | |
| galleryRepository | Yes | GitHub repository of the gallery template | |
| acknowledgePermissions | Yes | Must be true |