{"id":10736,"date":"2024-11-20T20:26:03","date_gmt":"2024-11-20T20:26:03","guid":{"rendered":"https:\/\/ceowebltd.com\/blog\/?p=10736"},"modified":"2024-11-20T20:26:03","modified_gmt":"2024-11-20T20:26:03","slug":"how-to-set-up-google-tag-manager-on-a-magento-site","status":"publish","type":"post","link":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/","title":{"rendered":"How to set up Google Tag Manager on a Magento site"},"content":{"rendered":"<p>Setting up Google Tag Manager (GTM) on a Magento site is a straightforward process that allows you to manage various tracking codes and marketing tags without modifying the website\u2019s source code directly. Here&#8217;s a step-by-step guide to integrating GTM with your Magento store:<\/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-google-tag-manager-on-a-magento-site\/#Step_1_Create_a_Google_Tag_Manager_Account\" title=\"Step 1: Create a Google Tag Manager Account\">Step 1: Create a Google Tag Manager Account<\/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-google-tag-manager-on-a-magento-site\/#Step_2_Install_Google_Tag_Manager_on_Your_Magento_Site\" title=\"Step 2: Install Google Tag Manager on Your Magento Site\">Step 2: Install Google Tag Manager on Your Magento Site<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/#Method_1_Install_GTM_via_the_Magento_Admin_Panel\" title=\"Method 1: Install GTM via the Magento Admin Panel\">Method 1: Install GTM via the Magento Admin Panel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/#Method_2_Use_a_Magento_Extension_for_GTM_Integration\" title=\"Method 2: Use a Magento Extension for GTM Integration\">Method 2: Use a Magento Extension for GTM Integration<\/a><\/li><\/ul><\/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-google-tag-manager-on-a-magento-site\/#Step_3_Verify_Google_Tag_Manager_Installation\" title=\"Step 3: Verify Google Tag Manager Installation\">Step 3: Verify Google Tag Manager Installation<\/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-google-tag-manager-on-a-magento-site\/#Step_4_Set_Up_Tags_Triggers_and_Variables_in_GTM\" title=\"Step 4: Set Up Tags, Triggers, and Variables in GTM\">Step 4: Set Up Tags, Triggers, and Variables 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-7\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/#Example_Tracking_Product_Views_in_Google_Analytics\" title=\"Example: Tracking Product Views in Google Analytics\">Example: Tracking Product Views in Google Analytics<\/a><\/li><\/ul><\/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-google-tag-manager-on-a-magento-site\/#Step_5_Maintain_and_Update_Tags\" title=\"Step 5: Maintain and Update Tags\">Step 5: Maintain and Update Tags<\/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-google-tag-manager-on-a-magento-site\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Create_a_Google_Tag_Manager_Account\"><\/span>Step 1: Create a Google Tag Manager Account<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li><strong>Sign Up for Google Tag Manager (GTM):<\/strong>\n<ul>\n<li>Go to <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_new\" rel=\"noopener\">Google Tag Manager<\/a>.<\/li>\n<li>If you don\u2019t have a GTM account, create one by clicking on <strong>Create Account<\/strong>.<\/li>\n<li>Enter your account name, country, and the container name (usually your website name or domain).<\/li>\n<li>Select <strong>Web<\/strong> as the platform for the container.<\/li>\n<li>Click <strong>Create<\/strong>, review and accept the terms of service.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Get the GTM Container Code:<\/strong>\n<ul>\n<li>After creating your account and container, GTM will provide you with a code snippet.<\/li>\n<li>The snippet contains two parts: one to be placed in the <code>&lt;head&gt;<\/code> section and another just after the opening <code>&lt;body&gt;<\/code> tag of your website.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Install_Google_Tag_Manager_on_Your_Magento_Site\"><\/span>Step 2: Install Google Tag Manager on Your Magento Site<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>There are a few different ways to install GTM on your Magento site. Here&#8217;s the most common method:<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Method_1_Install_GTM_via_the_Magento_Admin_Panel\"><\/span>Method 1: Install GTM via the Magento Admin Panel<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Login to Magento Admin:<\/strong>\n<ul>\n<li>Log in to your Magento admin panel.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Navigate to the Design Settings:<\/strong>\n<ul>\n<li>Go to <strong>Stores<\/strong> \u2192 <strong>Configuration<\/strong> \u2192 <strong>General<\/strong> \u2192 <strong>Design<\/strong>.<\/li>\n<li>Under <strong>HTML Head<\/strong>, find the <strong>Scripts and Style Sheets<\/strong> section.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add the GTM Code Snippet to the <code>&lt;head&gt;<\/code> Section:<\/strong>\n<ul>\n<li>In the <strong>Scripts and Style Sheets<\/strong> section, locate the <strong>Other<\/strong> box. Paste the first GTM code snippet (the one for the <code>&lt;head&gt;<\/code> section) into this field.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add the GTM Code Snippet Right After the <code>&lt;body&gt;<\/code> Tag:<\/strong>\n<ul>\n<li>For the second part of the GTM code (the one to be placed after the opening <code>&lt;body&gt;<\/code> tag), you\u2019ll need to modify your Magento theme files.<\/li>\n<li>Go to <strong>Content<\/strong> \u2192 <strong>Design<\/strong> \u2192 <strong>Themes<\/strong>, and find your active theme.<\/li>\n<li>Edit the <strong>default.xml<\/strong> file, which is located under <strong>app\/design\/frontend\/[Vendor]\/[Theme]\/Magento_Theme\/layout\/<\/strong> (create the folder if it doesn\u2019t exist).<\/li>\n<li>Add the following code right after the opening <code>&lt;body&gt;<\/code> tag:<\/li>\n<\/ul>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">xml<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center select-none py-1\">Copy code<\/button><\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">head<\/span>&gt;<\/span><br \/>\n  <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">script<\/span>&gt;<\/span><span class=\"javascript\"><br \/>\n    <span class=\"hljs-comment\">\/\/ Google Tag Manager snippet (second part)<\/span><br \/>\n    (<span class=\"hljs-keyword\">function<\/span>(<span class=\"hljs-params\">w,d,s,l,i<\/span>){w[l]=w[l]||[];w[l].<span class=\"hljs-title function_\">push<\/span>({<span class=\"hljs-string\">'gtm.start'<\/span>:<br \/>\n    <span class=\"hljs-keyword\">new<\/span> <span class=\"hljs-title class_\">Date<\/span>().<span class=\"hljs-title function_\">getTime<\/span>(),<span class=\"hljs-attr\">event<\/span>:<span class=\"hljs-string\">'gtm.js'<\/span>});<span class=\"hljs-keyword\">var<\/span> f=d.<span class=\"hljs-title function_\">getElementsByTagName<\/span>(s)[<span class=\"hljs-number\">0<\/span>],<br \/>\n    j=d.<span class=\"hljs-title function_\">createElement<\/span>(s),dl=l!=<span class=\"hljs-string\">'dataLayer'<\/span>?<span class=\"hljs-string\">'&amp;l='<\/span>+<span class=\"hljs-attr\">l<\/span>:<span class=\"hljs-string\">''<\/span>;j.<span class=\"hljs-property\">async<\/span>=<span class=\"hljs-literal\">true<\/span>;j.<span class=\"hljs-property\">src<\/span>=<br \/>\n    <span class=\"hljs-string\">'https:\/\/www.googletagmanager.com\/gtm.js?id='<\/span>+i+dl;f.<span class=\"hljs-property\">parentNode<\/span>.<span class=\"hljs-title function_\">insertBefore<\/span>(j,f);<br \/>\n    })(<span class=\"hljs-variable language_\">window<\/span>,<span class=\"hljs-variable language_\">document<\/span>,<span class=\"hljs-string\">'script'<\/span>,<span class=\"hljs-string\">'dataLayer'<\/span>,<span class=\"hljs-string\">'GTM-XXXX'<\/span>);<br \/>\n  <\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">script<\/span>&gt;<\/span><br \/>\n<span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">head<\/span>&gt;<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<p><strong>Note:<\/strong> Replace <code>'GTM-XXXX'<\/code> with your actual GTM container ID.<\/li>\n<li><strong>Save and Clear Cache:<\/strong>\n<ul>\n<li>After adding the code to your theme files, clear Magento\u2019s cache by navigating to <strong>System<\/strong> \u2192 <strong>Cache Management<\/strong>, and then click <strong>Flush Cache Storage<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Method_2_Use_a_Magento_Extension_for_GTM_Integration\"><\/span>Method 2: Use a Magento Extension for GTM Integration<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>If you want an easier method, you can use a Magento extension to install Google Tag Manager.<\/p>\n<ol>\n<li><strong>Install GTM Extension:<\/strong>\n<ul>\n<li>Search for <strong>Google Tag Manager<\/strong> extensions in the <a target=\"_new\" rel=\"noopener\">Magento Marketplace<\/a> or install a popular extension such as &#8220;Google Tag Manager&#8221; by Mageplaza, Amasty, or a similar provider.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Configure the Extension:<\/strong>\n<ul>\n<li>After installing the extension, go to the extension settings in your Magento admin panel (usually located under <strong>Stores<\/strong> \u2192 <strong>Configuration<\/strong> \u2192 <strong>Google Tag Manager<\/strong>).<\/li>\n<li>Enter your GTM Container ID in the appropriate field.<\/li>\n<li>The extension should automatically insert the GTM code snippets into the header and body sections of your site.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Verify_Google_Tag_Manager_Installation\"><\/span>Step 3: Verify Google Tag Manager Installation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once you\u2019ve installed the GTM container on your Magento site, you\u2019ll want to verify that it is working properly.<\/p>\n<ol>\n<li><strong>Use GTM Preview Mode:<\/strong>\n<ul>\n<li>In Google Tag Manager, click on <strong>Preview<\/strong> and enter your site URL to open the debug console. The console will show which tags are firing and which events are triggered when interacting with your site.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Use Google Tag Assistant (Chrome Extension):<\/strong>\n<ul>\n<li>Install the <a target=\"_new\" rel=\"noopener\">Tag Assistant<\/a> Chrome extension to verify that GTM is correctly implemented on your site. This tool will highlight any issues with the tags.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Check Source Code:<\/strong>\n<ul>\n<li>View your website\u2019s source code (right-click \u2192 <strong>View Page Source<\/strong>) and look for the GTM container code. You should see the GTM snippet in the <code>&lt;head&gt;<\/code> and <code>&lt;body&gt;<\/code> sections.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Set_Up_Tags_Triggers_and_Variables_in_GTM\"><\/span>Step 4: Set Up Tags, Triggers, and Variables in GTM<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Once GTM is installed, you can begin setting up tags for various tracking purposes. Some common e-commerce tracking tags include:<\/p>\n<ol>\n<li><strong>Google Analytics<\/strong>:\n<ul>\n<li>Set up tags to track page views, transactions, and other user interactions.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Google Ads Conversion Tracking<\/strong>:\n<ul>\n<li>Use GTM to track conversions from Google Ads, such as purchases or form submissions.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Facebook Pixel<\/strong>:\n<ul>\n<li>Add a Facebook Pixel tag to track user behavior and conversions from Facebook ads.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Custom E-commerce Events<\/strong>:\n<ul>\n<li>Use custom events to track interactions such as product views, add-to-cart, or checkout steps.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Example_Tracking_Product_Views_in_Google_Analytics\"><\/span>Example: Tracking Product Views in Google Analytics<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Create a New Tag for Google Analytics<\/strong>:\n<ul>\n<li>Go to <strong>Tags<\/strong> \u2192 <strong>New<\/strong> and select <strong>Google Analytics: GA4 Event<\/strong>.<\/li>\n<li>Set the <strong>Event Name<\/strong> to <code>view_item<\/code> (for product views).<\/li>\n<li>Under <strong>Event Parameters<\/strong>, map the necessary variables (like <code>item_name<\/code>, <code>item_id<\/code>, <code>price<\/code>, etc.) from the data layer.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set a Trigger for the Tag<\/strong>:\n<ul>\n<li>Create a trigger for the <code>pageview<\/code> or custom event that fires when a product page is loaded.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Test and Publish<\/strong>:\n<ul>\n<li>Use the GTM preview mode to ensure your tags are firing correctly, and once confirmed, publish your changes.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_5_Maintain_and_Update_Tags\"><\/span>Step 5: Maintain and Update Tags<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>As your Magento store evolves and you need to add new tracking, update your GTM tags and triggers. You can easily manage and update tags, triggers, and variables from within the GTM interface without needing to touch the Magento codebase.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Integrating Google Tag Manager with your Magento store is a powerful way to manage various marketing tags and tracking codes. Whether you implement GTM manually or use an extension, the key is ensuring that the GTM container is correctly placed on all pages of your site. Once set up, you can use GTM to track custom e-commerce events, measure user behavior, and optimize your online marketing efforts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up Google Tag Manager (GTM) on a Magento site is a straightforward process that allows you to manage various tracking codes and marketing tags&#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-10736","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 Google Tag Manager on a Magento site - 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-google-tag-manager-on-a-magento-site\/\" \/>\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 Google Tag Manager on a Magento site - CEOweb Ltd. Blog\" \/>\n<meta property=\"og:description\" content=\"Setting up Google Tag Manager (GTM) on a Magento site is a straightforward process that allows you to manage various tracking codes and marketing tags...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/\" \/>\n<meta property=\"og:site_name\" content=\"CEOweb Ltd. Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-20T20:26:03+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<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-google-tag-manager-on-a-magento-site\/\",\"url\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/\",\"name\":\"How to set up Google Tag Manager on a Magento site - CEOweb Ltd. Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\"},\"datePublished\":\"2024-11-20T20:26:03+00:00\",\"dateModified\":\"2024-11-20T20:26:03+00:00\",\"author\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\"},\"breadcrumb\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ceowebltd.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to set up Google Tag Manager on a Magento site\"}]},{\"@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 Google Tag Manager on a Magento site - 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-google-tag-manager-on-a-magento-site\/","og_locale":"en_US","og_type":"article","og_title":"How to set up Google Tag Manager on a Magento site - CEOweb Ltd. Blog","og_description":"Setting up Google Tag Manager (GTM) on a Magento site is a straightforward process that allows you to manage various tracking codes and marketing tags...","og_url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/","og_site_name":"CEOweb Ltd. Blog","article_published_time":"2024-11-20T20:26:03+00:00","author":"Emmanuel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Emmanuel"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/","url":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/","name":"How to set up Google Tag Manager on a Magento site - CEOweb Ltd. Blog","isPartOf":{"@id":"https:\/\/ceowebltd.com\/blog\/#website"},"datePublished":"2024-11-20T20:26:03+00:00","dateModified":"2024-11-20T20:26:03+00:00","author":{"@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f"},"breadcrumb":{"@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ceowebltd.com\/blog\/how-to-set-up-google-tag-manager-on-a-magento-site\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ceowebltd.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to set up Google Tag Manager on a Magento site"}]},{"@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\/10736","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=10736"}],"version-history":[{"count":1,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10736\/revisions"}],"predecessor-version":[{"id":10737,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10736\/revisions\/10737"}],"wp:attachment":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/media?parent=10736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/categories?post=10736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/tags?post=10736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}