{"id":10187,"date":"2024-10-24T21:58:41","date_gmt":"2024-10-24T21:58:41","guid":{"rendered":"https:\/\/ceowebltd.com\/blog\/?p=10187"},"modified":"2024-10-24T21:58:41","modified_gmt":"2024-10-24T21:58:41","slug":"how-to-set-up-and-use-custom-templates-in-google-tag-manager","status":"publish","type":"post","link":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/","title":{"rendered":"How to set up and use custom templates in Google Tag Manager"},"content":{"rendered":"<p>Setting up and using custom templates in <strong>Google Tag Manager (GTM)<\/strong> is a powerful way to enhance your tagging and tracking capabilities, especially if you need functionality that isn\u2019t covered by GTM\u2019s built-in templates. Custom templates allow you to create reusable, standardized setups for tags, triggers, or variables that can be easily deployed and managed across your website. Here&#8217;s a step-by-step guide to setting up and using custom templates effectively.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#What_is_Google_Tag_Manager\" title=\"What is Google Tag Manager?\">What is Google Tag Manager?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#Benefits_of_Using_Custom_Templates_in_Google_Tag_Manager\" title=\"Benefits of Using Custom Templates in Google Tag Manager\">Benefits of Using Custom Templates in Google Tag Manager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#Types_of_Custom_Templates_in_GTM\" title=\"Types of Custom Templates in GTM\">Types of Custom Templates in GTM<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#Step-by-Step_Guide_to_Setting_Up_Custom_Templates_in_GTM\" title=\"Step-by-Step Guide to Setting Up Custom Templates in GTM\">Step-by-Step Guide to Setting Up Custom Templates in GTM<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#1_Accessing_the_Template_Gallery\" title=\"1. Accessing the Template Gallery\">1. Accessing the Template Gallery<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#2_Creating_a_Custom_Tag_Template\" title=\"2. Creating a Custom Tag Template\">2. Creating a Custom Tag Template<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#3_Creating_a_Custom_Variable_Template\" title=\"3. Creating a Custom Variable Template\">3. Creating a Custom Variable Template<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#4_Publishing_the_Template\" title=\"4. Publishing the Template\">4. Publishing the Template<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#5_Using_the_Custom_Template\" title=\"5. Using the Custom Template\">5. Using the Custom Template<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#6_Sharing_Your_Custom_Template\" title=\"6. Sharing Your Custom Template\">6. Sharing Your Custom Template<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#Best_Practices_for_Using_Custom_Templates\" title=\"Best Practices for Using Custom Templates\">Best Practices for Using Custom Templates<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"What_is_Google_Tag_Manager\"><\/span>What is Google Tag Manager?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before diving into custom templates, let\u2019s briefly recap what Google Tag Manager is. GTM is a free tag management solution that enables you to deploy and manage various marketing and analytics tags on your website without needing to modify the code directly. Instead of hardcoding tags (e.g., Google Analytics, Facebook Pixel) into your website, you can manage them via a user-friendly interface.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Benefits_of_Using_Custom_Templates_in_Google_Tag_Manager\"><\/span>Benefits of Using Custom Templates in Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>Custom templates<\/strong> are a way to extend the functionality of GTM, allowing users to create reusable setups for specialized tags, triggers, and variables. Here are a few reasons to consider using them:<\/p>\n<ul>\n<li><strong>Flexibility:<\/strong> You can build a custom solution for tracking events, interactions, or third-party integrations that aren&#8217;t supported by GTM&#8217;s default templates.<\/li>\n<li><strong>Standardization:<\/strong> Custom templates ensure consistent implementation across different websites or projects, reducing human error.<\/li>\n<li><strong>Customization:<\/strong> You can tailor templates to meet the exact requirements of your tracking or tagging needs.<\/li>\n<li><strong>Ease of Use:<\/strong> After the initial setup, using custom templates can save time in future implementations because they allow for easy customization through simple input fields.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Types_of_Custom_Templates_in_GTM\"><\/span>Types of Custom Templates in GTM<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>There are three primary types of custom templates in GTM:<\/p>\n<ol>\n<li><strong>Tag Templates:<\/strong> Used to create custom tags that can be reused across various sites.<\/li>\n<li><strong>Variable Templates:<\/strong> Used to create custom variables that can interact with the GTM environment.<\/li>\n<li><strong>Trigger Templates:<\/strong> Used to create custom triggers to define specific events that should activate a tag.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step-by-Step_Guide_to_Setting_Up_Custom_Templates_in_GTM\"><\/span>Step-by-Step Guide to Setting Up Custom Templates in GTM<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"1_Accessing_the_Template_Gallery\"><\/span>1. Accessing the Template Gallery<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To create a custom template, follow these steps:<\/p>\n<ul>\n<li>Open <strong>Google Tag Manager<\/strong> and navigate to your container.<\/li>\n<li>In the left-hand menu, click on <strong>Templates<\/strong>. This is where you can manage both tag and variable templates.<\/li>\n<li>Under the <strong>Tag Templates<\/strong> section, click <strong>New<\/strong> to create a custom tag template, or under <strong>Variable Templates<\/strong>, click <strong>New<\/strong> for a custom variable template.<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"2_Creating_a_Custom_Tag_Template\"><\/span>2. Creating a Custom Tag Template<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To create a custom tag template, follow these steps:<\/p>\n<ol>\n<li><strong>Click &#8220;New&#8221; in the Tag Templates section:<\/strong> This opens the GTM <strong>Template Editor<\/strong>.<\/li>\n<li><strong>Define Metadata:<\/strong> Add a name and description for your tag in the metadata fields. Make sure it&#8217;s clear and self-explanatory because this information will help you and others understand what the template does.<\/li>\n<li><strong>Create Fields for User Input:<\/strong> In the Template Editor, you can define the fields where users will input the tag\u2019s configuration details. For example, if you\u2019re creating a custom tag to fire a tracking pixel, you might create fields for:\n<ul>\n<li><strong>Pixel ID<\/strong> (text input)<\/li>\n<li><strong>Event type<\/strong> (dropdown)<\/li>\n<li><strong>Page URL<\/strong> (auto-populated) These fields make it easier to reuse the tag without hardcoding values each time.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add Code for the Tag:<\/strong> You can define the JavaScript or HTML code that your custom tag will run. This is where you\u2019ll configure the logic for how the tag interacts with the page or third-party services.\n<ul>\n<li>Use <strong>Variables<\/strong> in the code to reference the input fields you defined in the template.<\/li>\n<li>Use <strong>Tag.setHtml()<\/strong> or <strong>Tag.setScript()<\/strong> methods to deploy the custom JavaScript\/HTML for the tag.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add Validation Rules:<\/strong> You can create validation rules to ensure that the inputs are correct before the tag fires. For example, you can ensure that the Pixel ID is in the correct format.<\/li>\n<li><strong>Testing and Debugging:<\/strong> After defining your custom template, you can use GTM\u2019s <strong>Preview and Debug<\/strong> mode to test it. This mode allows you to see how your tag behaves in real-time and catch any errors or misconfigurations before pushing the template live.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"3_Creating_a_Custom_Variable_Template\"><\/span>3. Creating a Custom Variable Template<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Variable templates are created similarly to tag templates, and they can be used to create reusable variables, such as fetching a specific cookie or formatting a timestamp in a certain way.<\/p>\n<ol>\n<li><strong>Click &#8220;New&#8221; under Variable Templates.<\/strong><\/li>\n<li><strong>Define Input Fields:<\/strong> Like tag templates, you\u2019ll start by defining input fields for users. For instance, if your variable is meant to extract a cookie value, you might include a field for the cookie name.<\/li>\n<li><strong>Write the JavaScript Logic:<\/strong> In the editor, write the custom JavaScript code that will be executed when the variable is called.\n<ul>\n<li>Example: <code>var cookieValue = document.cookie.match(new RegExp('(^| )' + {{cookieName}} + '=([^;]+)')); return cookieValue ? cookieValue[2] : '';<\/code><\/li>\n<\/ul>\n<\/li>\n<li><strong>Validation Rules:<\/strong> You can set validation rules for the user inputs.<\/li>\n<li><strong>Testing:<\/strong> Use the <strong>Preview and Debug<\/strong> mode to ensure your variable works as expected.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"4_Publishing_the_Template\"><\/span>4. Publishing the Template<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Once your custom tag or variable template is working as expected in preview mode, you can publish it:<\/p>\n<ol>\n<li><strong>Click Save<\/strong> on your custom template.<\/li>\n<li><strong>Navigate back to the main GTM dashboard<\/strong> and submit your changes using the <strong>Submit<\/strong> button. This will push the custom template live.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"5_Using_the_Custom_Template\"><\/span>5. Using the Custom Template<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Once your template is published:<\/p>\n<ol>\n<li><strong>Adding the Custom Tag:<\/strong> When creating a new tag in GTM, your custom template will appear alongside the built-in ones (e.g., Google Analytics, AdWords). You can select it and fill in the required fields you defined.<\/li>\n<li><strong>Using the Custom Variable:<\/strong> Similarly, custom variables will be available when you\u2019re adding or configuring tags.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"6_Sharing_Your_Custom_Template\"><\/span>6. Sharing Your Custom Template<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>One of the benefits of using GTM custom templates is that you can share them with others. To share your template:<\/p>\n<ol>\n<li><strong>Export your template:<\/strong> In the Templates section, click on the custom template you\u2019ve created, then select <strong>Export<\/strong>. GTM will download the template as a JSON file.<\/li>\n<li><strong>Share the file:<\/strong> You can share this file with others, who can import it into their own GTM container.<\/li>\n<\/ol>\n<p>Alternatively, you can publish your template to the <strong>Google Tag Manager Community Template Gallery<\/strong>, allowing anyone to search and install your template directly within GTM.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Best_Practices_for_Using_Custom_Templates\"><\/span>Best Practices for Using Custom Templates<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li><strong>Document your template well:<\/strong> When you create a custom template, always add a comprehensive description and field names. This ensures that anyone using the template understands its purpose.<\/li>\n<li><strong>Test rigorously:<\/strong> Ensure that you\u2019ve tested the template thoroughly across different browsers and devices, especially if it contains custom JavaScript or relies on third-party services.<\/li>\n<li><strong>Version control:<\/strong> Keep track of the versions of your custom templates. If you need to update a template, always create a new version and clearly outline the changes.<\/li>\n<li><strong>Follow security practices:<\/strong> Avoid allowing user inputs to be directly passed into your custom JavaScript without sanitization. Untrusted user input can lead to potential security vulnerabilities like cross-site scripting (XSS) attacks.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Custom templates in Google Tag Manager are a powerful tool that allows you to create tailored, reusable configurations for your tagging and tracking needs. By creating custom tag, variable, and trigger templates, you can streamline your implementation, ensure consistency, and scale your tagging across different projects. Once you&#8217;ve mastered the basics, custom templates can significantly enhance your use of GTM, making your tracking setups more efficient, adaptable, and user-friendly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up and using custom templates in Google Tag Manager (GTM) is a powerful way to enhance your tagging and tracking capabilities, especially if you&#8230;<\/p>\n","protected":false},"author":214,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-10187","post","type-post","status-publish","format-standard","hentry","category-digital-marketing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to set up and use custom templates in Google Tag Manager - CEOweb Ltd. Blog<\/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:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to set up and use custom templates in Google Tag Manager - CEOweb Ltd. Blog\" \/>\n<meta property=\"og:description\" content=\"Setting up and using custom templates in Google Tag Manager (GTM) is a powerful way to enhance your tagging and tracking capabilities, especially if you...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"CEOweb Ltd. Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-24T21:58:41+00:00\" \/>\n<meta name=\"author\" content=\"Emmanuel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Emmanuel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/\",\"url\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/\",\"name\":\"How to set up and use custom templates in Google Tag Manager - CEOweb Ltd. Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\"},\"datePublished\":\"2024-10-24T21:58:41+00:00\",\"dateModified\":\"2024-10-24T21:58:41+00:00\",\"author\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\"},\"breadcrumb\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ceowebltd.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to set up and use custom templates in Google Tag Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\",\"url\":\"https:\/\/ceowebltd.com\/blog\/\",\"name\":\"CEOweb Ltd. Blog\",\"description\":\"Guest Posting - Digital Marketing &amp; Web Services\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ceowebltd.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\",\"name\":\"Emmanuel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g\",\"caption\":\"Emmanuel\"},\"url\":\"https:\/\/ceowebltd.com\/blog\/author\/emmanuel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to set up and use custom templates in Google Tag Manager - CEOweb Ltd. Blog","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:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"How to set up and use custom templates in Google Tag Manager - CEOweb Ltd. Blog","og_description":"Setting up and using custom templates in Google Tag Manager (GTM) is a powerful way to enhance your tagging and tracking capabilities, especially if you...","og_url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/","og_site_name":"CEOweb Ltd. Blog","article_published_time":"2024-10-24T21:58:41+00:00","author":"Emmanuel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Emmanuel","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/","url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/","name":"How to set up and use custom templates in Google Tag Manager - CEOweb Ltd. Blog","isPartOf":{"@id":"https:\/\/ceowebltd.com\/blog\/#website"},"datePublished":"2024-10-24T21:58:41+00:00","dateModified":"2024-10-24T21:58:41+00:00","author":{"@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f"},"breadcrumb":{"@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ceowebltd.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to set up and use custom templates in Google Tag Manager"}]},{"@type":"WebSite","@id":"https:\/\/ceowebltd.com\/blog\/#website","url":"https:\/\/ceowebltd.com\/blog\/","name":"CEOweb Ltd. Blog","description":"Guest Posting - Digital Marketing &amp; Web Services","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ceowebltd.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f","name":"Emmanuel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g","caption":"Emmanuel"},"url":"https:\/\/ceowebltd.com\/blog\/author\/emmanuel\/"}]}},"_links":{"self":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/users\/214"}],"replies":[{"embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/comments?post=10187"}],"version-history":[{"count":1,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10187\/revisions"}],"predecessor-version":[{"id":10188,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10187\/revisions\/10188"}],"wp:attachment":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/media?parent=10187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/categories?post=10187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/tags?post=10187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}