{"id":94786,"date":"2025-02-18T02:34:01","date_gmt":"2025-02-18T02:34:01","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/community-template-gallery-for-google-tag-manager-introduction-and-tips-for-use\/"},"modified":"2025-02-18T02:34:01","modified_gmt":"2025-02-18T02:34:01","slug":"community-template-gallery-for-google-tag-manager-introduction-and-tips-for-use","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=94786","title":{"rendered":"Community Template Gallery For Google Tag Manager &#8211; Introduction And Tips For Use"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>Since the introduction of <a href=\"https:\/\/developers.google.com\/tag-manager\/templates\">custom templates<\/a> in May 2019, the community (myself included) has been anxiously waiting for some official solution for curating and distributing templates created by the community.<\/p>\n<p>Now, finally, we have it. It\u2019s called the <strong>Community Template Gallery<\/strong>! Read Google\u2019s announcement in <a href=\"https:\/\/blog.google\/products\/marketingplatform\/analytics\/manage-tags-easily-and-safely-new-community-template-gallery\/\">this blog post<\/a>.<\/p>\n<div style=\"aspect-ratio: 3080 \/ 1586;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/gallery-list.jpg\" title=\"Gallery list\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1586\" width=\"3080\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/gallery-list.jpg#ZgotmplZ\" alt=\"Gallery list\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>I\u2019m not going to go over the basics in this article, since Google\u2019s <a href=\"https:\/\/developers.google.com\/tag-manager\/templates\/gallery\">own documentation<\/a> stands fine on its own feet. However, I do want to discuss some of the ways in which you can streamline updating and sharing those lovely templates you\u2019ve created.<\/p>\n<p>Don\u2019t forget that there are other sources for templates as well, namely:<\/p>\n<p>                <span class=\"simmer\"><br \/>\n  <span class=\"close\">X<\/span><\/p>\n<p>\n    <span class=\"fa fa-md fa-bell\"\/><br \/>\n    <strong>The Simmer Newsletter<\/strong>\n  <\/p>\n<p>\n    Subscribe to the <a href=\"https:\/\/www.simoahava.com\/newsletter\/\">Simmer newsletter<\/a> to get the latest news and content from Simo Ahava into your email inbox!\n  <\/p>\n<p>  <\/span><\/p>\n<p>The Community Template Gallery is Google Tag Manager\u2019s own, integrated library for uploading and distributing templates across users, accounts, and containers.<\/p>\n<p><strong>Anybody<\/strong> in the community can <a href=\"https:\/\/tagmanager.google.com\/gallery\/getting-started\">submit a template<\/a> to the gallery, and thus get their work in the reach of all Google Tag Manager users around the world.<\/p>\n<blockquote>\n<p><strong>NOTE!<\/strong> Not all templates will be published. Your template must follow the <a href=\"https:\/\/developers.google.com\/tag-manager\/templates\/style\">style guide<\/a>, and if there\u2019s a template with similar functionality already in the gallery, your template might not get published.<\/p>\n<\/blockquote>\n<div style=\"aspect-ratio: 1952 \/ 952;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/submit-template.jpg\" title=\"Submit template\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"952\" width=\"1952\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/submit-template.jpg#ZgotmplZ\" alt=\"Submit template\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Templates can be added to a container by clicking the <strong>Search gallery<\/strong> button next to the Tag Templates and Variable Templates listings in the <strong>Templates<\/strong> section of the container.<\/p>\n<div style=\"aspect-ratio: 2462 \/ 360;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/search-gallery-button.jpg\" title=\"search templates button\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"360\" width=\"2462\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/search-gallery-button.jpg#ZgotmplZ\" alt=\"search templates button\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>This opens an overlay where you can do string searches for the template you\u2019d like to add to your container.<\/p>\n<div style=\"aspect-ratio: 1904 \/ 1264;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/sample-template.jpg\" title=\"Sample template\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1264\" width=\"1904\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/sample-template.jpg#ZgotmplZ\" alt=\"Sample template\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>The template overlay lets you <strong>add the template to the workspace<\/strong> by clicking the respective button <strong>(1)<\/strong>. Here, you can take a final look at the permissions before choosing to add the template to the current workspace.<\/p>\n<div style=\"aspect-ratio: 1304 \/ 1142;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/add-template-to-workspace.jpg\" title=\"Add template to workspace\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1142\" width=\"1304\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/add-template-to-workspace.jpg#ZgotmplZ\" alt=\"Add template to workspace\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>The <strong>little arrow link<\/strong> in the corner opens the template page in the <a href=\"https:\/\/tagmanager.google.com\/gallery\/\">gallery itself<\/a> <strong>(2)<\/strong>.<\/p>\n<p>You can click the <strong>author name<\/strong> to access their GitHub profile <strong>(3)<\/strong>. The green checkmark indicates that this organization has been <a href=\"https:\/\/help.github.com\/en\/articles\/verifying-your-organizations-domain\">verified<\/a> in GitHub.<\/p>\n<p>The <strong>permissions<\/strong> overview is important, as it will let you evaluate what types of <a href=\"https:\/\/www.simoahava.com\/analytics\/custom-templates-guide-for-google-tag-manager\/#permissions\">permissions<\/a> the template might require <strong>(4)<\/strong>. The red danger and the grey warning icons alert you that the template will load potentially hazardous code, and you should only add the template if you <strong>trust the author<\/strong>.<\/p>\n<p>There are direct links to the <strong>template repository<\/strong> in GitHub, and to the <strong>issues<\/strong> section of the repository <strong>(5)<\/strong>.<\/p>\n<div style=\"aspect-ratio: 2886 \/ 1536;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/09\/template-gallery.jpg\" title=\"Template Gallery\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1536\" width=\"2886\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/09\/template-gallery.jpg#ZgotmplZ\" alt=\"Template Gallery\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>You can also visit the Community Template Gallery directly at the URL <a href=\"https:\/\/tagmanager.google.com\/gallery\/\">https:\/\/tagmanager.google.com\/gallery\/<\/a>. It has all the same features as the overlay.<\/p>\n<h2 id=\"github\">GitHub<\/h2>\n<p>As you might have noticed above, to submit a template you need to create a <strong>GitHub repository<\/strong> for it.<\/p>\n<div style=\"aspect-ratio: 2030 \/ 1050;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/github-repository.jpg\" title=\"GitHub repository\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1050\" width=\"2030\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/github-repository.jpg#ZgotmplZ\" alt=\"GitHub repository\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>GitHub is a community for managing and sharing <strong>code<\/strong>. It\u2019s used to manage and coordinate projects running on the <a href=\"https:\/\/git-scm.com\/\">Git<\/a> version-control system.<\/p>\n<p>GitHub is free to use, although there is a paid tier as well, which gives you benefits such as the ability to create private repositories.<\/p>\n<p>For the purposes of the Community Template Gallery, each template requires <strong>its own public repository<\/strong> in GitHub. This might cause some overhead for users who submit lots of templates, but it makes it easier for Google Tag Manager to parse the correct template every time, to manage metadata, and to have the <strong>Issues<\/strong> feature (basically bug and feature tracking) be devoid of ambiguities, as there is only one template to which the issues relate.<\/p>\n<div style=\"aspect-ratio: 974 \/ 348;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/required-files.jpg\" title=\"Required files\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"348\" width=\"974\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/required-files.jpg#ZgotmplZ\" alt=\"Required files\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>To be a valid template for the gallery, the repository requires the following three files in the <strong>root<\/strong>:<\/p>\n<table>\n<thead>\n<tr>\n<th>File<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>template.tpl<\/strong><\/td>\n<td>You get this when you <a href=\"https:\/\/www.simoahava.com\/analytics\/custom-templates-guide-for-google-tag-manager\/#importing-and-exporting\">export<\/a> a template from Google Tag Manager. <strong>NOTE!<\/strong> It <em>must<\/em> be named <code>template.tpl<\/code>. All other names will break the upload.<\/td>\n<\/tr>\n<tr>\n<td><strong>metadata.yaml<\/strong><\/td>\n<td>Template metadata, where you can provide things like links to the documentation and, <strong>importantly<\/strong>, the changelog of commits where you\u2019ve made changes to the template and want to update them to the template users.<\/td>\n<\/tr>\n<tr>\n<td><strong>LICENSE<\/strong><\/td>\n<td>LICENSE text file that uses the <a href=\"https:\/\/www.apache.org\/licenses\/LICENSE-2.0.txt\">Apache 2.0<\/a>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>These three files <strong>must<\/strong> be in the repository root or you will not be able to upload the template to the Community Template Gallery.<\/p>\n<p>The repository <strong>can<\/strong> have other files as well (such as a README), but these three are mandatory.<\/p>\n<p>Easiest way to get started is to <a href=\"https:\/\/help.github.com\/en\/articles\/create-a-repo\">create a public repository<\/a>, and then use the <a href=\"https:\/\/help.github.com\/en\/articles\/adding-a-file-to-a-repository\">file upload<\/a> option to add files to the repository.<\/p>\n<p>Once you\u2019re comfortable with GitHub, I recommend installing the <a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Getting-Started-Installing-Git\">git<\/a> command line tools and working from your terminal.<\/p>\n<h3 id=\"templatetpl\">template.tpl<\/h3>\n<p>For the template file to be accepted into the gallery, you <strong>must<\/strong> check the box named \u201cAgree to Community Template Gallery Terms of Service\u201d available in the <strong>Info<\/strong> tab of the template editor.<\/p>\n<div style=\"aspect-ratio: 1142 \/ 932;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/terms-of-service-template.jpg\" title=\"TOS template\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"932\" width=\"1142\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/terms-of-service-template.jpg#ZgotmplZ\" alt=\"TOS template\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>You\u2019ll also need to <em>manually<\/em> edit the <strong>template.tpl<\/strong> file (I\u2019m sure this will be replaced by a UI functionality soon) to add <em>categories<\/em> to it. Categories will be used to categorize (d\u2019oh) templates in the gallery UI.<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-json\" data-lang=\"json\">{\n  <span style=\"color:#1e90ff;font-weight:bold\">\"displayName\"<\/span>: <span style=\"color:#a50\">\"My template\"<\/span>,\n  <span style=\"color:#1e90ff;font-weight:bold\">\"categories\"<\/span>: [<span style=\"color:#a50\">\"AFFILIATE_MARKETING\"<\/span>, <span style=\"color:#a50\">\"ADVERTISING\"<\/span>],\n  <span style=\"color:#f00;background-color:#faa\">\/\/<\/span> <span style=\"color:#f00;background-color:#faa\">etc...<\/span>\n}<\/code><\/pre>\n<\/div>\n<p>Read more about the available categories <a href=\"https:\/\/developers.google.com\/tag-manager\/templates\/gallery#add_categories_to_templatetpl\">here<\/a>.<\/p>\n<p>Other than that, there\u2019s not much to say about the template file. You\u2019ll need to <strong>export<\/strong> the file from GTM and make sure it\u2019s renamed to <code>template.tpl<\/code> before uploading it to your GitHub repository.<\/p>\n<div style=\"aspect-ratio: 1942 \/ 406;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/template-export.jpg\" title=\"Template export\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"406\" width=\"1942\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/template-export.jpg#ZgotmplZ\" alt=\"Template export\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h3 id=\"metadatayaml\">metadata.yaml<\/h3>\n<p>The metadata file is provided in the <strong>YAML<\/strong> format (short for <strong>Y<\/strong>AML <strong>A<\/strong>in\u2019t <strong>M<\/strong>arkup <strong>L<\/strong>anguage). The only requirement is that it has the <code>versions<\/code> key populated with the hashes of all the commits you want to include as version changes in the template gallery entry.<\/p>\n<p>Here\u2019s a sample <strong>metadata.yaml<\/strong> file:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#00a\">homepage<\/span>:<span style=\"color:#bbb\"> <\/span><span style=\"color:#a50\">\"https:\/\/www.simoahava.com\/\"<\/span><span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\"\/><span style=\"color:#00a\">documentation<\/span>:<span style=\"color:#bbb\"> <\/span><span style=\"color:#a50\">\"https:\/\/www.simoahava.com\/analytics\/create-facebook-pixel-custom-tag-template\/\"<\/span><span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\"\/><span style=\"color:#00a\">versions<\/span>:<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">  <\/span><span style=\"color:#aaa;font-style:italic\"># Latest version<\/span><span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">  <\/span>- <span style=\"color:#00a\">sha<\/span>:<span style=\"color:#bbb\"> <\/span>d7bad4f7a6e39c72dbc72afc7773d7fb8fdc358c<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">    <\/span><span style=\"color:#00a\">changeNotes<\/span>:<span style=\"color:#bbb\"> <\/span>Update<span style=\"color:#bbb\"> <\/span>template<span style=\"color:#bbb\"> <\/span>metadata.<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">  <\/span><span style=\"color:#aaa;font-style:italic\"># Older versions<\/span><span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">  <\/span>- <span style=\"color:#00a\">sha<\/span>:<span style=\"color:#bbb\"> <\/span>ff7bf31a0777e22a370d6371607022fe2a6d1b7c<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">    <\/span><span style=\"color:#00a\">changeNotes<\/span>:<span style=\"color:#bbb\"> <\/span>|<span style=\"color:#099\">2<\/span><span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">      <\/span>Add<span style=\"color:#bbb\"> <\/span>support<span style=\"color:#bbb\"> <\/span>for<span style=\"color:#bbb\"> <\/span><span style=\"color:#a50\">\"consent\"<\/span><span style=\"color:#bbb\"> <\/span>command.<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">      <\/span>Add<span style=\"color:#bbb\"> <\/span>support<span style=\"color:#bbb\"> <\/span>for<span style=\"color:#bbb\"> <\/span>using<span style=\"color:#bbb\"> <\/span>a<span style=\"color:#bbb\"> <\/span>variable<span style=\"color:#bbb\"> <\/span>to<span style=\"color:#bbb\"> <\/span>populate<span style=\"color:#bbb\"> <\/span>object<span style=\"color:#bbb\"> <\/span>properties.<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">  <\/span>- <span style=\"color:#00a\">sha<\/span>:<span style=\"color:#bbb\"> <\/span>e1206f9c677fe67348c6678c4669952cb0c0b97b<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">    <\/span><span style=\"color:#00a\">changeNotes<\/span>:<span style=\"color:#bbb\"> <\/span>Initial<span style=\"color:#bbb\"> <\/span>release.<\/code><\/pre>\n<\/div>\n<p>Use the <code>homepage<\/code> key to indicate the website home page URL for the template, and use the  <code>documentation<\/code> key to indicate where documentation can be found.<\/p>\n<p>The <code>versions<\/code> key is where you nest all the commits <strong>to the template.tpl file<\/strong> that you want to consider as new <strong>versions<\/strong> of the template.<\/p>\n<p>Each version comprises of two keys. The first key, <code>sha<\/code>, is mandatory, and corresponds to the <strong>commit hash<\/strong> for the commit where you made the final changes to the <strong>template.tpl<\/strong> file. The second key, <code>changeNotes<\/code>, is optional, and is the place where you add details about what was changed.<\/p>\n<p>The versions should be listed so that the newest version is the first entry, and the older versions are listed after this from newest to oldest.<\/p>\n<p>You can follow my example and use the comment <code># Latest version<\/code> to visually separate the older versions (listed after the <code># Older versions<\/code> comment).<\/p>\n<p>So how do you find this <code>sha<\/code> hash? Well, whenever you make a <strong>commit<\/strong> to GitHub, the commit will receive a hash that will uniquely identify the commit.<\/p>\n<p>Thus, whenever you make a commit that <strong>includes changes to template.tpl<\/strong>, and you consider this commit to be important enough to warrant a new version of the template, you need to browse to the <strong>commits<\/strong> of your GitHub repository, find the commit in question, and copy its hash.<\/p>\n<p>Easiest way to find the commits is to take your GitHub repo URL and add <code>\/commits\/<\/code> to the end, e.g. <a href=\"https:\/\/www.github.com\/gtm-templates-simo-ahava\/user-distributor\/commits\/\">https:\/\/www.github.com\/gtm-templates-simo-ahava\/user-distributor\/commits\/<\/a>.<\/p>\n<p>Then, find the commit whose hash you want, and click the clipboard button to copy the hash to the clipboard.<\/p>\n<div style=\"aspect-ratio: 2096 \/ 1018;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/copy-hash-to-clipboard.jpg\" title=\"Copy hash to clipboard\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1018\" width=\"2096\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/copy-hash-to-clipboard.jpg#ZgotmplZ\" alt=\"Copy hash to clipboard\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Finally, add a new item under <code>versions<\/code> in the <strong>metadata.yaml<\/strong> with the hash under the <code>sha<\/code> key and any change notes under the <code>changeNotes<\/code> property. You can specify multi-line notes with the pipe symbol <code>|2<\/code> as in the example in the beginning of this chapter.<\/p>\n<blockquote>\n<p><strong>Note!<\/strong> You don\u2019t have to add every single commit to template.tpl as a new version. You might do incremental updates first, and then when you\u2019re ready with a version update, you copy the hash of the last commit, as it would include all the previous commits as well.<\/p>\n<\/blockquote>\n<p>At its bare minimum, the <strong>metadata.yaml<\/strong> file just needs the <code>sha<\/code> keys, so this would also work:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#00a\">versions<\/span>:<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">  <\/span>- <span style=\"color:#00a\">sha<\/span>:<span style=\"color:#bbb\"> <\/span>abcd12345<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">  <\/span>- <span style=\"color:#00a\">sha<\/span>:<span style=\"color:#bbb\"> <\/span>bcde23456<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">  <\/span>- <span style=\"color:#00a\">sha<\/span>:<span style=\"color:#bbb\"> <\/span>cdef34567<\/code><\/pre>\n<\/div>\n<p>The purpose of versioning the templates like this is that in time, the gallery will introduce features that allow uses who have imported the templates to be notified of changes to the template sources. For this to work, the template author must add versioning information to the metadata file.<\/p>\n<h3 id=\"license\">LICENSE<\/h3>\n<p>You can find the Apache 2.0 license text here: <a href=\"https:\/\/www.apache.org\/licenses\/LICENSE-2.0.txt\">https:\/\/www.apache.org\/licenses\/LICENSE-2.0.txt<\/a>. Save it as <code>LICENSE<\/code> in your repository, and make sure you edit the copyright text at the end.<\/p>\n<div style=\"aspect-ratio: 1190 \/ 536;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/license-copyright.jpg\" title=\"License copyright\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"536\" width=\"1190\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/license-copyright.jpg#ZgotmplZ\" alt=\"License copyright\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h3 id=\"github-tip-1-add-new-template-to-the-gallery\">GitHub tip #1: Add new template to the gallery<\/h3>\n<p>When you want to add a new template to the gallery, this is (roughly) the process you would follow.<\/p>\n<p><strong>STEP 1:<\/strong> Create a new repository in GitHub. Make sure it\u2019s <strong>Public<\/strong> and that it has the <strong>Apache 2.0<\/strong> license added. If you\u2019re creating templates under an <em>organization<\/em>, make sure the repository is created in the correct place.<\/p>\n<div style=\"aspect-ratio: 1512 \/ 1372;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/new-repo.jpg\" title=\"new repo\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1372\" width=\"1512\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/new-repo.jpg#ZgotmplZ\" alt=\"new repo\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p><strong>STEP 2:<\/strong> Create the template in Google Tag Manager. Make sure you\u2019ve checked the box for the Community Gallery Terms of Service in the <strong>Info<\/strong> tab. Export the template as a <strong>template.tpl<\/strong> file.<\/p>\n<p><strong>STEP 3:<\/strong> In the GitHub repo, choose <strong>Upload files<\/strong> to upload your template file into GitHub. Commit the change with a clear commit name, e.g. \u201cInitial publish of template.tpl\u201d. Commit directly to the <code>master<\/code> branch.<\/p>\n<div style=\"aspect-ratio: 2074 \/ 1558;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/initial-commit.jpg\" title=\"Initial commit\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1558\" width=\"2074\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/initial-commit.jpg#ZgotmplZ\" alt=\"Initial commit\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p><strong>STEP 4:<\/strong> Visit the <strong>\/commits\/<\/strong> page of the repo, and copy the commit hash of the latest commit to the clipboard.<\/p>\n<div style=\"aspect-ratio: 2056 \/ 716;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/copy-latest-clipboard.jpg\" title=\"copy latest hash\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"716\" width=\"2056\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/copy-latest-clipboard.jpg#ZgotmplZ\" alt=\"copy latest hash\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p><strong>STEP 5<\/strong>: Back in the repo root, click <strong>Create new file<\/strong>. Name the file <strong>metadata.yaml<\/strong>. The contents need to be <em>at least<\/em> the following:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-yaml\" data-lang=\"yaml\"><span style=\"color:#00a\">versions<\/span>:<span style=\"color:#bbb\">\n<\/span><span style=\"color:#bbb\">  <\/span>- <span style=\"color:#00a\">sha<\/span>:<span style=\"color:#bbb\"> <\/span>paste_commit_hash_here<\/code><\/pre>\n<\/div>\n<p>You might as well add the <code>homepage<\/code> and <code>documentation<\/code> keys while you\u2019re at it.<\/p>\n<div style=\"aspect-ratio: 1424 \/ 736;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/my-new-template.jpg\" title=\"My new template\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"736\" width=\"1424\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/my-new-template.jpg#ZgotmplZ\" alt=\"My new template\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Make sure you commit the new file directly to the <code>master<\/code> branch.<\/p>\n<div style=\"aspect-ratio: 1548 \/ 870;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/create-metadata-yaml-commit.jpg\" title=\"Create metadata.yaml commit\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"870\" width=\"1548\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/create-metadata-yaml-commit.jpg#ZgotmplZ\" alt=\"Create metadata.yaml commit\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p><strong>STEP 6:<\/strong> Head over to the <a href=\"https:\/\/tagmanager.google.com\/gallery\/getting-started\">gallery submission form<\/a>. Add the URL to the repo root in the URL field, and hit <em>Submit<\/em>. If all validates OK, you should get a response that the template has been submitted. If there was a problem, there error message will tell you where the validation failed.<\/p>\n<div style=\"aspect-ratio: 1510 \/ 818;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/submit-demo.jpg\" title=\"Submit demo\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"818\" width=\"1510\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/submit-demo.jpg#ZgotmplZ\" alt=\"Submit demo\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>That\u2019s it! Your template should appear in the gallery after it goes through some further validation.<\/p>\n<blockquote>\n<p><strong>NOTE!<\/strong> Just a reminder that not all templates will be published. Your template must follow the <a href=\"https:\/\/developers.google.com\/tag-manager\/templates\/style\">style guide<\/a>, and if there\u2019s a template with similar functionality already in the gallery, your template might not get published.<\/p>\n<\/blockquote>\n<p>Finally, it might make sense to clone the repo to your local machine just so that you can use the <code>git<\/code> command line tools instead.<\/p>\n<h3 id=\"github-tip-2-update-the-template\">GitHub tip #2: Update the template<\/h3>\n<p>Once the template has been submitted to the gallery, you update it by committing changes to the <strong>template.tpl<\/strong> file.<\/p>\n<p>Once you\u2019ve got a commit of the <strong>template.tpl<\/strong> file merged with <code>master<\/code> that you want to submit to the Community Template Gallery as a new version of the template, you need to copy its commit hash, and add it as a new entry in the <strong>metadata.yaml<\/strong> file. It needs to become the new first entry under the <code>versions<\/code> key.<\/p>\n<div style=\"aspect-ratio: 2828 \/ 682;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/update-metadata.jpg\" title=\"Update metadata\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"682\" width=\"2828\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/update-metadata.jpg#ZgotmplZ\" alt=\"Update metadata\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Once you\u2019ve updated the <strong>metadata.yaml<\/strong> file, you need to commit <em>that<\/em> and make sure your changes are merged with the <code>master<\/code> branch.<\/p>\n<p>Then you\u2019ll just need to wait for the gallery to pull in your latest changes, validate them, and update the template listing in the gallery with the changes.<\/p>\n<p>The key thing here is the process:<\/p>\n<ol>\n<li>Make incremental changes to <strong>template.tpl<\/strong>.<\/li>\n<li>Once happy and ready to create a new version of the template in the gallery, <strong>commit<\/strong> the final version of <strong>template.tpl<\/strong>, merge it to <code>master<\/code>,  and copy the commit hash.<\/li>\n<li>Edit <strong>metadata.yaml<\/strong> and add this commit hash as the newest version of the template.<\/li>\n<li><strong>Commit<\/strong> the changes to <strong>metadata.yaml<\/strong> and make sure it\u2019s merged to <code>master<\/code>.<\/li>\n<li>Wait.<\/li>\n<\/ol>\n<h3 id=\"github-tip-3-set-up-an-organization-and-submodules\">GitHub tip #3: Set up an organization and submodules<\/h3>\n<p>If you\u2019re providing a lot of templates, it might make sense to logically order them in GitHub as an <a href=\"https:\/\/help.github.com\/en\/articles\/about-organizations\">organization<\/a>. After creating an organization, any public templates you want to upload would be created as repositories within this organization, giving you a single point of origin for managing your templates.<\/p>\n<p>Another benefit of creating an organization is that you can <a href=\"https:\/\/help.github.com\/en\/articles\/verifying-your-organizations-domain\">verify<\/a> the organization (by showing GitHub that you own the domains referenced in the organization profile), and as a consequence get the green checkmark to show next to your organization name in the gallery listing.<\/p>\n<div style=\"aspect-ratio: 1516 \/ 580;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/verified-org.jpg\" title=\"Verified organization\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"580\" width=\"1516\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/verified-org.jpg#ZgotmplZ\" alt=\"Verified organization\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Here\u2019s what <a href=\"https:\/\/github.com\/gtm-templates-simo-ahava\">my template organization<\/a> looks like:<\/p>\n<div style=\"aspect-ratio: 2020 \/ 1552;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/simo-organization.jpg\" title=\"Template organization\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1552\" width=\"2020\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/simo-organization.jpg#ZgotmplZ\" alt=\"Template organization\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Another thing you might want to do is create a new \u201croll-up\u201d repository, to which you add all the template repositories as <a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Tools-Submodules\">submodules<\/a>. This is, again, a way to logically manage your templates. The use case is similar to organizations, so if you\u2019re already grouping the templates together with an organization, using submodules might not be at all useful. Nevertheless, here\u2019s what my \u201croll-up\u201d repository looks like. See how each template repo has its own folder within? Those are submodules.<\/p>\n<div style=\"aspect-ratio: 2078 \/ 1260;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2019\/10\/git-submodules.jpg\" title=\"Git submodules\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1260\" width=\"2078\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2019\/10\/git-submodules.jpg#ZgotmplZ\" alt=\"Git submodules\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>These are just quality-of-life things, and definitely not required to get set up with the template gallery.<\/p>\n<h2 id=\"summary\">Summary<\/h2>\n<p>The Community Template Gallery is finally here! We now have a way to distribute the templates we\u2019ve worked on &#8211; how exciting.<\/p>\n<p>Don\u2019t be turned off by the seemingly complex way of managing your custom templates via GitHub. First of all, if you\u2019ve managed to create a template and add all the required metadata, chances are you\u2019re already proficient with GitHub and should find it trivial (if somewhat time-consuming) to operate.<\/p>\n<p>And even if GitHub is a new thing for you, take this as an excellent lesson in version control. As your files are directly used by Google Tag Manager, being able to discretely annotate each version is really important.<\/p>\n<p>Similarly, being able to curate community-submitted issues on a template-by-template and commit-by-commit basis is useful not just for template gallery but for you as well.<\/p>\n<p>I\u2019m sure our community will rise up to the occasion and write little tools that will make it even easier to update the templates (a command-line tool to copy the hash from the most recent commit and add it as a new entry in the <strong>metadata.yaml<\/strong>? Any takers? Ping me &#8211; I\u2019ve got ideas).<\/p>\n<p>Time will tell how popular the gallery will be, but I have a hunch it will be the main way for brands to distribute their script snippets in the near future. I see no reason why a vendor should offer a block of custom code to be copy-pasted into a Custom HTML tag anymore, especially after the introduction of the template gallery. Nor do I see any reason for them to share their templates only on their own site, when they can get the additional brand visibility by offering the templates via the gallery.<\/p>\n<p>In any case, custom templates continue firmly at the top position of my \u201cmost important and most inspiring Google Tag Manager feature of the recent years\u201d list, and the Community Template Gallery is an excellent, complementary feature to support the template suite of features.<\/p>\n<p>What do you think about the Community Template Gallery? Do you have ideas for improvement? Let your voice be heard in the comments!<\/p>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Since the introduction of custom templates in May 2019, the community (myself included) has been anxiously waiting for some official solution for curating and distributing templates created by the community. Now, finally, we have it. It\u2019s called the Community Template Gallery! Read Google\u2019s announcement in this blog post. I\u2019m not going to go over the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":94787,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[6876,13842,1531,14570,14495,1791,4196,3535],"dealstore":[],"offerexpiration":[],"class_list":["post-94786","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-community","tag-gallery","tag-google","tag-introduction","tag-manager","tag-tag","tag-template","tag-tips"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Community Template Gallery For Google Tag Manager - Introduction And Tips For Use - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=94786\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Community Template Gallery For Google Tag Manager - Introduction And Tips For Use - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"Since the introduction of custom templates in May 2019, the community (myself included) has been anxiously waiting for some official solution for curating and distributing templates created by the community. Now, finally, we have it. It\u2019s called the Community Template Gallery! Read Google\u2019s announcement in this blog post. I\u2019m not going to go over the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=94786\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-18T02:34:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/gallery-list-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1318\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=94786#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=94786\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Community Template Gallery For Google Tag Manager &#8211; Introduction And Tips For Use\",\"datePublished\":\"2025-02-18T02:34:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=94786\"},\"wordCount\":2504,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=94786#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/gallery-list-scaled.jpg\",\"keywords\":[\"community\",\"Gallery\",\"Google\",\"Introduction\",\"Manager\",\"TAG\",\"Template\",\"Tips\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=94786#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=94786\",\"url\":\"https:\/\/fivemor.com\/?p=94786\",\"name\":\"Community Template Gallery For Google Tag Manager - Introduction And Tips For Use - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=94786#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=94786#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/gallery-list-scaled.jpg\",\"datePublished\":\"2025-02-18T02:34:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=94786#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=94786\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=94786#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/gallery-list-scaled.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/gallery-list-scaled.jpg\",\"width\":2560,\"height\":1318},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=94786#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Community Template Gallery For Google Tag Manager &#8211; Introduction And Tips For Use\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Community Template Gallery For Google Tag Manager - Introduction And Tips For Use - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=94786","og_locale":"en_US","og_type":"article","og_title":"Community Template Gallery For Google Tag Manager - Introduction And Tips For Use - Som2ny Network","og_description":"Since the introduction of custom templates in May 2019, the community (myself included) has been anxiously waiting for some official solution for curating and distributing templates created by the community. Now, finally, we have it. It\u2019s called the Community Template Gallery! Read Google\u2019s announcement in this blog post. I\u2019m not going to go over the [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=94786","og_site_name":"Som2ny Network","article_published_time":"2025-02-18T02:34:01+00:00","og_image":[{"width":2560,"height":1318,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/gallery-list-scaled.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=94786#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=94786"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Community Template Gallery For Google Tag Manager &#8211; Introduction And Tips For Use","datePublished":"2025-02-18T02:34:01+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=94786"},"wordCount":2504,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=94786#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/gallery-list-scaled.jpg","keywords":["community","Gallery","Google","Introduction","Manager","TAG","Template","Tips"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=94786#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=94786","url":"https:\/\/fivemor.com\/?p=94786","name":"Community Template Gallery For Google Tag Manager - Introduction And Tips For Use - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=94786#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=94786#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/gallery-list-scaled.jpg","datePublished":"2025-02-18T02:34:01+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=94786#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=94786"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=94786#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/gallery-list-scaled.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/gallery-list-scaled.jpg","width":2560,"height":1318},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=94786#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Community Template Gallery For Google Tag Manager &#8211; Introduction And Tips For Use"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/94786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=94786"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/94786\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/94787"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=94786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=94786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=94786"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=94786"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=94786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}