{"id":10444,"date":"2024-11-07T23:32:36","date_gmt":"2024-11-07T23:32:36","guid":{"rendered":"https:\/\/ceowebltd.com\/blog\/?p=10444"},"modified":"2024-11-07T23:32:36","modified_gmt":"2024-11-07T23:32:36","slug":"how-to-set-up-and-use-custom-templates-in-google-tag-manager-2","status":"publish","type":"post","link":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/","title":{"rendered":"How to set up and use custom templates in Google Tag Manager"},"content":{"rendered":"<p>Custom templates in Google Tag Manager (GTM) allow you to extend the functionality of the platform by creating reusable, custom tags, triggers, and variables. These templates help streamline tag management and enhance the flexibility of your GTM setup. Below is a detailed guide on how to set up and use custom templates in Google Tag Manager.<\/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-2\/#Step_1_Access_Google_Tag_Manager\" title=\"Step 1: Access Google Tag Manager\">Step 1: Access 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-2\/#Step_2_Navigate_to_Templates_in_GTM\" title=\"Step 2: Navigate to Templates in GTM\">Step 2: Navigate to Templates in GTM<\/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-2\/#Step_3_Create_a_Custom_Tag_Template\" title=\"Step 3: Create a Custom Tag Template\">Step 3: Create a Custom Tag Template<\/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-2\/#Step_4_Create_Custom_Trigger_Template\" title=\"Step 4: Create Custom Trigger Template\">Step 4: Create Custom Trigger Template<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><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-2\/#Step_5_Create_Custom_Variable_Template\" title=\"Step 5: Create Custom Variable Template\">Step 5: Create Custom Variable Template<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><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\/#Step_6_Using_Custom_Templates_in_Google_Tag_Manager\" title=\"Step 6: Using Custom Templates in Google Tag Manager\">Step 6: 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-7\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/#Step_7_Publishing_Your_Container\" title=\"Step 7: Publishing Your Container\">Step 7: Publishing Your Container<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><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-2\/#Step_8_Manage_Custom_Templates\" title=\"Step 8: Manage Custom Templates\">Step 8: Manage Custom Templates<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><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-2\/#Benefits_of_Using_Custom_Templates_in_GTM\" title=\"Benefits of Using Custom Templates in GTM\">Benefits of Using 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-10\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Access_Google_Tag_Manager\"><\/span>Step 1: Access Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before you start, you should have a Google Tag Manager account and a container created for your website or app.<\/p>\n<ol>\n<li><strong>Log in to Google Tag Manager<\/strong>:\n<ul>\n<li>Go to <a href=\"https:\/\/tagmanager.google.com\" target=\"_new\" rel=\"noopener\">Google Tag Manager<\/a> and log in with your Google account.<\/li>\n<li>Select the container for the website or app you want to configure custom templates for.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Navigate_to_Templates_in_GTM\"><\/span>Step 2: Navigate to Templates in GTM<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To create and manage custom templates in Google Tag Manager:<\/p>\n<ol>\n<li><strong>Go to the &#8220;Templates&#8221; section<\/strong>:\n<ul>\n<li>In the left-hand sidebar, click on <strong>Templates<\/strong>. Here you\u2019ll find the options to create custom tags, triggers, and variables.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Create_a_Custom_Tag_Template\"><\/span>Step 3: Create a Custom Tag Template<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Custom tag templates let you define specific tags that are reusable across your container. Here&#8217;s how to create one:<\/p>\n<ol>\n<li><strong>Click on &#8220;Tag Templates&#8221;<\/strong>:\n<ul>\n<li>Under the <strong>Templates<\/strong> section, click <strong>Tag Templates<\/strong> to start creating your custom tag.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Click &#8220;New&#8221;<\/strong>:\n<ul>\n<li>Click on the <strong>New<\/strong> button to create a new custom tag template.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Define the Tag Configuration<\/strong>:\n<ul>\n<li>In the custom tag editor, you\u2019ll be able to set up the configuration for your tag. This is where you define the parameters and logic specific to your tag. You can include form fields that allow users to enter their own values when setting up the tag.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set Up User Inputs<\/strong>:\n<ul>\n<li>You can define input fields such as text boxes, dropdowns, checkboxes, etc. to make your tag configurable when the user sets it up in their GTM account. To add a user input, use the <strong>Variables<\/strong> tab in the editor to define parameters that can be filled by the user.<\/li>\n<li>Example inputs: API keys, URL paths, or any custom configurations your tag needs.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Define the Tag Logic<\/strong>:\n<ul>\n<li>Write JavaScript or use the GTM templating language to specify the behavior of your tag. This is where you can add the logic that will be triggered when the tag is fired.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Save the Tag Template<\/strong>:\n<ul>\n<li>After setting up your tag, click <strong>Save<\/strong> to save the custom template.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Create_Custom_Trigger_Template\"><\/span>Step 4: Create Custom Trigger Template<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Just like tag templates, trigger templates allow you to define reusable triggers. These triggers can be added to tags later in GTM.<\/p>\n<ol>\n<li><strong>Go to &#8220;Trigger Templates&#8221;<\/strong>:\n<ul>\n<li>In the <strong>Templates<\/strong> section, click on <strong>Trigger Templates<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a New Trigger Template<\/strong>:\n<ul>\n<li>Click <strong>New<\/strong> to create a new trigger template.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Define the Trigger Configuration<\/strong>:\n<ul>\n<li>Specify the conditions for when your trigger should fire. For example, you can set up triggers based on page views, clicks, form submissions, or custom JavaScript events.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add User Input Fields<\/strong>:\n<ul>\n<li>Similar to tag templates, you can allow users to provide input for the trigger configuration. For instance, you might allow them to specify URLs or specific events that should trigger the action.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Save the Trigger Template<\/strong>:\n<ul>\n<li>Once the trigger template is ready, click <strong>Save<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_5_Create_Custom_Variable_Template\"><\/span>Step 5: Create Custom Variable Template<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Variable templates in GTM help you create custom variables that can be reused throughout your container.<\/p>\n<ol>\n<li><strong>Go to &#8220;Variable Templates&#8221;<\/strong>:\n<ul>\n<li>In the <strong>Templates<\/strong> section, click on <strong>Variable Templates<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Click &#8220;New&#8221;<\/strong> to create a new variable template.<\/li>\n<li><strong>Define the Variable Configuration<\/strong>:\n<ul>\n<li>Configure the variable to extract data from the page or app, such as custom JavaScript values, URL parameters, or other dynamic content.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set Up User Inputs<\/strong>:\n<ul>\n<li>Like tag and trigger templates, you can define the user input fields to allow users to configure the variable when setting up the template.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Save the Variable Template<\/strong>:\n<ul>\n<li>Once the variable template is configured, click <strong>Save<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_6_Using_Custom_Templates_in_Google_Tag_Manager\"><\/span>Step 6: Using Custom Templates in Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once you have created your custom templates, you can use them just like any other built-in tag, trigger, or variable in Google Tag Manager.<\/p>\n<ol>\n<li><strong>Create a New Tag<\/strong>:\n<ul>\n<li>Go to the <strong>Tags<\/strong> section in GTM and click <strong>New<\/strong>.<\/li>\n<li>Under <strong>Tag Configuration<\/strong>, you will see your custom tag templates listed. Select your custom tag template to use it in your tag configuration.<\/li>\n<li>Fill in any required fields based on the template configuration.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a New Trigger<\/strong>:\n<ul>\n<li>In the <strong>Triggers<\/strong> section, click <strong>New<\/strong>.<\/li>\n<li>Under <strong>Trigger Configuration<\/strong>, you will see the custom trigger templates you\u2019ve created. Select your custom trigger template to use it with your tag.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a New Variable<\/strong>:\n<ul>\n<li>In the <strong>Variables<\/strong> section, click <strong>New<\/strong>.<\/li>\n<li>Select your custom variable template to create and configure variables for use within tags and triggers.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Preview and Test the Custom Template<\/strong>:\n<ul>\n<li>Always test your custom templates to ensure they work correctly. Use the <strong>Preview<\/strong> mode in GTM to check if your custom tag, trigger, or variable behaves as expected when added to the live website.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_7_Publishing_Your_Container\"><\/span>Step 7: Publishing Your Container<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once you have created and tested your custom templates and associated tags, triggers, and variables, you can publish the changes.<\/p>\n<ol>\n<li><strong>Submit and Publish<\/strong>:\n<ul>\n<li>In Google Tag Manager, click <strong>Submit<\/strong> in the top right corner of the container.<\/li>\n<li>Add a version name and description, then click <strong>Publish<\/strong> to make your changes live.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_8_Manage_Custom_Templates\"><\/span>Step 8: Manage Custom Templates<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can always edit or delete your custom templates as needed:<\/p>\n<ol>\n<li><strong>Edit Custom Templates<\/strong>:\n<ul>\n<li>Go to the <strong>Templates<\/strong> section and select <strong>Tag Templates<\/strong>, <strong>Trigger Templates<\/strong>, or <strong>Variable Templates<\/strong>.<\/li>\n<li>Click on the template you want to edit and make the necessary changes.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Delete Custom Templates<\/strong>:\n<ul>\n<li>If you no longer need a custom template, you can delete it from the <strong>Templates<\/strong> section. Deleting a template will not affect existing tags, triggers, or variables that were already configured with that template.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Benefits_of_Using_Custom_Templates_in_GTM\"><\/span>Benefits of Using Custom Templates in GTM<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li><strong>Efficiency<\/strong>:\n<ul>\n<li>Custom templates allow you to create reusable configurations, saving time and effort in implementing complex tags, triggers, and variables across multiple containers or websites.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Consistency<\/strong>:\n<ul>\n<li>By using custom templates, you can ensure consistency in how tags, triggers, and variables are implemented across your site.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Simplification<\/strong>:\n<ul>\n<li>Custom templates allow you to abstract away the complexity of the underlying code, making it easier for non-technical users to implement tracking tags.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Enhanced Functionality<\/strong>:\n<ul>\n<li>Custom templates offer enhanced flexibility by allowing you to add specific logic or functionality tailored to your unique needs.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\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 provide a powerful way to extend the capabilities of GTM by allowing you to create reusable, configurable, and flexible tags, triggers, and variables. By using custom templates, you can streamline your tag management processes, ensure consistency across your website, and simplify complex tracking setups. Whether you\u2019re building tags for third-party platforms, custom triggers, or variables specific to your site\u2019s needs, GTM\u2019s custom templates are an essential tool for any advanced user looking to maximize the power of Google Tag Manager.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Custom templates in Google Tag Manager (GTM) allow you to extend the functionality of the platform by creating reusable, custom tags, triggers, and variables. These&#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-10444","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-2\/\" \/>\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=\"Custom templates in Google Tag Manager (GTM) allow you to extend the functionality of the platform by creating reusable, custom tags, triggers, and variables. These...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/\" \/>\n<meta property=\"og:site_name\" content=\"CEOweb Ltd. Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-07T23:32:36+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=\"5 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-2\/\",\"url\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/\",\"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-11-07T23:32:36+00:00\",\"dateModified\":\"2024-11-07T23:32:36+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-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/#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-2\/","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":"Custom templates in Google Tag Manager (GTM) allow you to extend the functionality of the platform by creating reusable, custom tags, triggers, and variables. These...","og_url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/","og_site_name":"CEOweb Ltd. Blog","article_published_time":"2024-11-07T23:32:36+00:00","author":"Emmanuel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Emmanuel","Est. reading time":"5 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-2\/","url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/","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-11-07T23:32:36+00:00","dateModified":"2024-11-07T23:32:36+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-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-and-use-custom-templates-in-google-tag-manager-2\/#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\/10444","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=10444"}],"version-history":[{"count":1,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10444\/revisions"}],"predecessor-version":[{"id":10445,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10444\/revisions\/10445"}],"wp:attachment":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/media?parent=10444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/categories?post=10444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/tags?post=10444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}