{"id":23221,"date":"2021-08-04T06:34:55","date_gmt":"2021-08-04T10:34:55","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=23221"},"modified":"2021-11-18T05:40:20","modified_gmt":"2021-11-18T10:40:20","slug":"how-to-add-google-tag-manager-to-magento-2-amp-pages","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager","title":{"rendered":"How to Add Google Tag Manager to Magento 2 AMP Pages"},"content":{"rendered":"\n<p>In this article, you will learn how to integrate <a href=\"\/magento-amp\">Google Tag Manager into&nbsp;Magento 2 AMP extension<\/a>. Google Tag Manager allows you to easily configure and deploy tags on your AMP pages, including tags from&nbsp;Google Ads,&nbsp;Google Analytics,&nbsp;Floodlight, and&nbsp;3rd parties.&nbsp;Please follow the steps below to integrate Google Tag Manager correctly.<\/p>\n\n\n\n<h2 id=\"h-how-to-create-amp-container-in-google-tag-manager\">How to Create AMP Container in Google Tag Manager<\/h2>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>Create an account at&nbsp;<a href=\"https:\/\/tagmanager.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">tagmanager.google.com<\/a> or use an existing Google Tag Manager account.&nbsp;<\/li><li>Follow the official guide and <a href=\"https:\/\/support.google.com\/tagmanager\/answer\/9205783?hl=en#create\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">create&nbsp;an AMP container<\/a> in Google Tag Manager.<\/li><li>After you create your new AMP container, the&nbsp;<strong>Install Google Tag Manager<\/strong>&nbsp;screen will appear. There, Google Tag Manager provides you with two code snippets. <\/li><\/ol>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<ol><li id=\"google-tag-manager-snippet\">Copy and paste the code to the <a href=\"#snippet-field\">Snippet field<\/a> of the Magento 2 AMP Extension configurations in Magento admin panel.<\/li><li>Do not perform any action on this code, as it will be automatically added to your Magento 2 AMP pages.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/12\/Magento_2_amp_google_tag_manager.jpg\" alt=\"google tag manager tag snippets.png\"\/><\/figure>\n\n\n\n<p>To access the code snippets later, click the container ID number at the top of your workspace overview page, or click&nbsp;<strong>Admin<\/strong>&nbsp;and then&nbsp;<strong>Install Google Tag Manager<\/strong>.<\/p>\n\n\n\n<p>You may also use the official guide to <a href=\"https:\/\/support.google.com\/tagmanager\/answer\/9205783?hl=en#configure\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">configure&nbsp;tags<\/a> in your Tag Manager container and publish it for the changes to take effect.<\/p>\n\n\n\n<h2 id=\"h-how-to-integrate-google-tag-manager-with-magento-2-amp-extension\">How to Integrate Google Tag Manager With Magento 2 AMP Extension<\/h2>\n\n\n\n<p>In the main Magento menu, go to the <strong>Plumrocket<\/strong> -&gt; <strong>AMP<\/strong> -&gt; <strong>Configuration<\/strong>, and scroll down to <strong>Integrations<\/strong> -&gt; <strong>Google Tag Manager<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li><strong>Enable<\/strong>: set to&nbsp;<em>Yes<\/em>&nbsp;to enable Google Tag Manager on your AMP pages.<\/li><li><strong id=\"snippet-field\">Snippet<\/strong>: <a href=\"#google-tag-manager-snippet\">paste the code<\/a> from your Google Tag Manager account. You can access the code snippet by clicking the container ID number at the top of your workspace overview page, or click&nbsp;<strong>Admin<\/strong>&nbsp;and then&nbsp;<strong>Install Google Tag Manager<\/strong>.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1206\" height=\"439\" src=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/08\/magento-2-amp-extension-google-tag-manager-integration-configuration-30.png\" alt=\"magento 2 amp extension google tag manager integration configuration 5.png\" class=\"wp-image-23406\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/08\/magento-2-amp-extension-google-tag-manager-integration-configuration-30.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/08\/magento-2-amp-extension-google-tag-manager-integration-configuration-30-300x109.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/08\/magento-2-amp-extension-google-tag-manager-integration-configuration-30-1024x373.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/08\/magento-2-amp-extension-google-tag-manager-integration-configuration-30-768x280.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<p>Google Tag Manager integration with the Magento 2 AMP extension is now completed.<\/p>\n\n\n\n<h2 id=\"h-amp-integrations-supported-by-google-tag-manager\">AMP Integrations Supported by Google Tag Manager<\/h2>\n\n\n\n<ul><li><a href=\"http:\/\/www.adobe.com\/marketing-cloud\/web-analytics.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Adobe Analytics<\/a><\/li><li><a href=\"http:\/\/www.atinternet.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">AT Internet<\/a><\/li><li><a href=\"https:\/\/www.burtintelligence.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Burt<\/a><\/li><li><a href=\"https:\/\/chartbeat.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Chartbeat<\/a><\/li><li><a href=\"https:\/\/clicky.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Clicky<\/a><\/li><li><a href=\"http:\/\/www.comscore.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">comScore<\/a><\/li><li><a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6107167\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Custom image<\/a><\/li><li><a href=\"https:\/\/www.cxense.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Cxense<\/a><\/li><li><a href=\"https:\/\/support.google.com\/tagmanager\/topic\/6334112\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Floodlight<\/a><\/li><li><a href=\"https:\/\/support.google.com\/tagmanager\/topic\/6334091\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google Ads<\/a><\/li><li><a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6107124\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google Analytics<\/a><\/li><li><a href=\"https:\/\/www.salesforce.com\/products\/marketing-cloud\/data-management\/?d=DMP\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Salesforce DMP (Krux)<\/a><\/li><li><a href=\"https:\/\/business.linkedin.com\/marketing-solutions\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LinkedIn<\/a><\/li><li><a href=\"https:\/\/www.linkpulse.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LinkPulse<\/a><\/li><li><a href=\"http:\/\/www.mediametrie.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">M\u00e9diam\u00e9trie<\/a><\/li><li><a href=\"https:\/\/www.mparticle.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">mParticle<\/a><\/li><li><a href=\"http:\/\/www.oewa.at\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u00d6WA<\/a><\/li><li><a href=\"https:\/\/www.parse.ly\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Parse.ly<\/a><\/li><li><a href=\"http:\/\/piano.io\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Piano<\/a><\/li><li><a href=\"https:\/\/www.quantcast.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Quantcast<\/a><\/li><li><a href=\"https:\/\/segment.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Segment<\/a><\/li><li><a href=\"https:\/\/www.nativo.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Nativo<\/a> (formerly <a href=\"https:\/\/www.nativo.com\/simplereach\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">SimpleReach<\/a>)<\/li><li><a href=\"https:\/\/snowplowanalytics.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Snowplow<\/a><\/li><li><a href=\"https:\/\/www.webtrekk.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Webtrekk<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn how to integrate Google Tag Manager into&nbsp;Magento 2 AMP extension. Google Tag Manager allows you to easily configure and deploy tags on your AMP pages, including tags from&nbsp;Google Ads,&nbsp;Google Analytics,&nbsp;Floodlight, and&nbsp;3rd parties.&nbsp;Please follow the steps below to integrate Google Tag Manager correctly. How to Create AMP Container in Google &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Add Google Tag Manager to Magento 2 AMP Pages&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[327],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Google Tag Manager to Magento 2 AMP Pages - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"In this article, you will learn how to integrate Google Tag Manager into&nbsp;Magento 2 AMP extension. Google Tag Manager allows you to easily configure\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/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 Add Google Tag Manager to Magento 2 AMP Pages\" \/>\n<meta property=\"og:description\" content=\"In this article, you will learn how to integrate Google Tag Manager into&nbsp;Magento 2 AMP extension. Google Tag Manager allows you to easily configure\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-04T10:34:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-18T10:40:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/12\/Magento_2_amp_google_tag_manager.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Add Google Tag Manager to Magento 2 AMP Pages - Plumrocket Documentation","description":"In this article, you will learn how to integrate Google Tag Manager into&nbsp;Magento 2 AMP extension. Google Tag Manager allows you to easily configure","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:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager","og_locale":"en_US","og_type":"article","og_title":"How to Add Google Tag Manager to Magento 2 AMP Pages","og_description":"In this article, you will learn how to integrate Google Tag Manager into&nbsp;Magento 2 AMP extension. Google Tag Manager allows you to easily configure","og_url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager","og_site_name":"Plumrocket Documentation","article_published_time":"2021-08-04T10:34:55+00:00","article_modified_time":"2021-11-18T10:40:20+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/12\/Magento_2_amp_google_tag_manager.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager#primaryimage","inLanguage":"en-US","url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/12\/Magento_2_amp_google_tag_manager.jpg","contentUrl":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/12\/Magento_2_amp_google_tag_manager.jpg"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager","name":"How to Add Google Tag Manager to Magento 2 AMP Pages - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager#primaryimage"},"datePublished":"2021-08-04T10:34:55+00:00","dateModified":"2021-11-18T10:40:20+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"In this article, you will learn how to integrate Google Tag Manager into&nbsp;Magento 2 AMP extension. Google Tag Manager allows you to easily configure","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations\/google-tag-manager#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 AMP","item":"https:\/\/plumrocket.com\/magento-amp"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-amp"},{"@type":"ListItem","position":4,"name":"v3","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3"},{"@type":"ListItem","position":5,"name":"Integrations","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/integrations"},{"@type":"ListItem","position":6,"name":"How to Add Google Tag Manager to Magento 2 AMP Pages"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","caption":"Plumrocket"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/23221"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=23221"}],"version-history":[{"count":13,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/23221\/revisions"}],"predecessor-version":[{"id":25114,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/23221\/revisions\/25114"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=23221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=23221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=23221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}