{"id":6430,"date":"2024-06-05T19:36:08","date_gmt":"2024-06-05T19:36:08","guid":{"rendered":"https:\/\/lite14.net\/blog\/?p=6430"},"modified":"2024-06-05T19:36:08","modified_gmt":"2024-06-05T19:36:08","slug":"how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager","status":"publish","type":"post","link":"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/","title":{"rendered":"How to Set up AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager"},"content":{"rendered":"<div class=\"flex-1 overflow-hidden\">\n<div class=\"react-scroll-to-bottom--css-ehisg-79elbk h-full\">\n<div class=\"react-scroll-to-bottom--css-ehisg-1n7m0yu\">\n<div class=\"flex flex-col text-sm pb-9\">\n<div class=\"w-full text-token-text-primary\" dir=\"auto\" data-testid=\"conversation-turn-29\" data-scroll-anchor=\"true\">\n<div class=\"py-2 juice:py-[18px] px-3 text-base md:px-4 m-auto md:px-5 lg:px-1 xl:px-5\">\n<div class=\"mx-auto flex flex-1 gap-3 text-base juice:gap-4 juice:md:gap-6 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem]\">\n<div class=\"group\/conversation-turn relative flex w-full min-w-0 flex-col agent-turn\">\n<div class=\"flex-col gap-1 md:gap-3\">\n<div class=\"flex flex-grow flex-col max-w-full\">\n<div class=\"min-h-[20px] text-message flex flex-col items-start whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 juice:w-full juice:items-end overflow-x-auto gap-2\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"0363b9c7-01f9-4fe2-9ca4-9c8385bb0662\">\n<div class=\"flex w-full flex-col gap-1 juice:empty:hidden juice:first:pt-[3px]\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<p>Google Tag Manager (GTM) provides a streamlined way to manage and deploy marketing tags on your website or mobile app without modifying the codebase. For AMP pages, GTM simplifies the process of implementing tracking solutions, ensuring quick loading times and enhanced user experiences. This guide will walk you through the steps to set up AMP tracking using GTM.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 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:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#_1_Create_a_Google_Tag_Manager_Container_for_AMP\" >\u00a01. Create a Google Tag Manager Container for AMP<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#11_Sign_in_to_Google_Tag_Manager\" >1.1 Sign in to Google Tag Manager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#12_Create_a_New_Container\" >1.2 Create a New Container<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#_2_Add_GTM_to_Your_AMP_Pages\" >\u00a02. Add GTM to Your AMP Pages<\/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:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#21_Get_the_AMP_Container_Snippet\" >2.1 Get the AMP Container Snippet<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#22_Add_the_Snippet_to_Your_AMP_HTML\" >2.2 Add the Snippet to Your AMP HTML<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#_3_Set_Up_Tags_Triggers_and_Variables_in_GTM_for_AMP\" >\u00a03. Set Up Tags, Triggers, and Variables in GTM for AMP<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#31_Access_the_AMP_Container\" >3.1 Access the AMP Container<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#32_Configure_Variables\" >3.2 Configure Variables<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#33_Create_Tags\" >3.3 Create Tags<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#331_Google_Analytics_GA4_Tag\" >3.3.1 Google Analytics (GA4) Tag<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#332_Google_Analytics_Universal_Analytics_Tag\" >3.3.2 Google Analytics (Universal Analytics) Tag<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#34_Create_Triggers\" >3.4 Create Triggers<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#_4_Configure_AMP_Analytics_in_Your_AMP_HTML\" >\u00a04. Configure AMP Analytics in Your AMP HTML<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#41_Add_AMP_Analytics_Configuration\" >4.1 Add AMP Analytics Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#42_Add_custom_Tracking\" >4.2\u00a0 Add custom Tracking<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#_5_Test_Your_Setup\" >\u00a05. Test Your Setup<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#51_Preview_and_Debug\" >5.1 Preview and Debug<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#52_Verify_Analytics_Data\" >5.2 Verify Analytics Data<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#Step_6_Publish_Your_Container\" >Step 6: Publish Your Container<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#61_Submit_and_Publish\" >6.1 Submit and Publish<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#Best_Practices_for_AMP_Tracking\" >Best Practices for AMP Tracking<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#Back_Up_Existing_Configurations\" >Back Up Existing Configurations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#Maintain_Naming_Conventions\" >Maintain Naming Conventions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#Regular_Monitoring\" >Regular Monitoring<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#Document_Changes\" >Document Changes<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#Example_Use_Case_Setting_Up_AMP_Tracking_for_a_Blog\" >Example Use Case: Setting Up AMP Tracking for a Blog<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"_1_Create_a_Google_Tag_Manager_Container_for_AMP\"><\/span>\u00a01. Create a Google Tag Manager Container for AMP<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"11_Sign_in_to_Google_Tag_Manager\"><\/span>1.1 Sign in to Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Open Google Tag Manager:<\/strong>\n<ul>\n<li>Visit <a href=\"https:\/\/tagmanager.google.com\" target=\"_new\" rel=\"noreferrer noopener\">Google Tag Manager<\/a> and log in using your Google account.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"12_Create_a_New_Container\"><\/span>1.2 Create a New Container<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Navigate to Admin:<\/strong>\n<ul>\n<li>Click on the <code>Admin<\/code> tab located on the left-hand side.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create Container:<\/strong>\n<ul>\n<li>In the <code>Account<\/code> column, select <code>Create Container<\/code>.<\/li>\n<li>Enter a descriptive name for your container (e.g., &#8220;AMP Container for MyWebsite&#8221;).<\/li>\n<li>Choose <code>AMP<\/code> as the target platform and click <code>Create<\/code>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Copy the Container Snippet:<\/strong>\n<ul>\n<li>After creating the container, GTM provides a code snippet. Copy this snippet as it will be needed in your AMP pages.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"_2_Add_GTM_to_Your_AMP_Pages\"><\/span>\u00a02. Add GTM to Your AMP Pages<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"21_Get_the_AMP_Container_Snippet\"><\/span>2.1 Get the AMP Container Snippet<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Container Snippet:<\/strong>\n<ul>\n<li>Ensure you have copied the GTM container snippet from the previous step.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"22_Add_the_Snippet_to_Your_AMP_HTML\"><\/span>2.2 Add the Snippet to Your AMP HTML<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Edit AMP HTML:<\/strong>\n<ul>\n<li>Open the HTML files for your AMP pages in a code editor.<\/li>\n<li>Paste the GTM snippet into the <code>&lt;head&gt;<\/code> section of your AMP HTML pages.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"_3_Set_Up_Tags_Triggers_and_Variables_in_GTM_for_AMP\"><\/span>\u00a03. Set Up Tags, Triggers, and Variables in GTM for AMP<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"31_Access_the_AMP_Container\"><\/span>3.1 Access the AMP Container<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Select AMP Container:<\/strong>\n<ul>\n<li>In GTM, navigate to the AMP container you created.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"32_Configure_Variables\"><\/span>3.2 Configure Variables<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Enable Built-In Variables:<\/strong>\n<ul>\n<li>Click on <code>Variables<\/code> in the left-hand menu.<\/li>\n<li>Click <code>Configure<\/code> and enable the relevant built-in AMP variables such as <code>Click Element<\/code>, <code>Click URL<\/code>, <code>Page Path<\/code>, <code>Page URL<\/code>, etc.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"33_Create_Tags\"><\/span>3.3 Create Tags<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h5><span class=\"ez-toc-section\" id=\"331_Google_Analytics_GA4_Tag\"><\/span>3.3.1 Google Analytics (GA4) Tag<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<ol>\n<li><strong>Add a New Tag:<\/strong>\n<ul>\n<li>Click on <code>Tags<\/code> in the left-hand menu and then <code>New<\/code>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Configure Tag:<\/strong>\n<ul>\n<li>Click on <code>Tag Configuration<\/code> and select <code>Google Analytics: GA4 Configuration<\/code>.<\/li>\n<li>Enter your GA4 Measurement ID.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set Trigger:<\/strong>\n<ul>\n<li>Click on <code>Triggering<\/code> and select <code>All Pages (AMP)<\/code> to ensure the tag fires on all AMP pages.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h5><span class=\"ez-toc-section\" id=\"332_Google_Analytics_Universal_Analytics_Tag\"><\/span>3.3.2 Google Analytics (Universal Analytics) Tag<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<ol>\n<li><strong>Add a New Tag:<\/strong>\n<ul>\n<li>Click on <code>Tags<\/code> in the left-hand menu and then <code>New<\/code>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Configure Tag:<\/strong>\n<ul>\n<li>Click on <code>Tag Configuration<\/code> and select <code>Google Analytics: Universal Analytics<\/code>.<\/li>\n<li>Set the Track Type to <code>Pageview<\/code> and enter your Tracking ID.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set Trigger:<\/strong>\n<ul>\n<li>Click on <code>Triggering<\/code> and select <code>All Pages (AMP)<\/code> to ensure the tag fires on all AMP pages.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"34_Create_Triggers\"><\/span>3.4 Create Triggers<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Add New Triggers:<\/strong>\n<ul>\n<li>Click on <code>Triggers<\/code> in the left-hand menu.<\/li>\n<li>Create new triggers for specific events you want to track, such as clicks, form submissions, etc.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"_4_Configure_AMP_Analytics_in_Your_AMP_HTML\"><\/span>\u00a04. Configure AMP Analytics in Your AMP HTML<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"41_Add_AMP_Analytics_Configuration\"><\/span>4.1 Add AMP Analytics Configuration<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Add <code>amp-analytics<\/code>:<\/strong>\n<ul>\n<li>In your AMP HTML, add the <code>amp-analytics<\/code> configuration to track pageviews and events.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<div class=\"dark bg-gray-950 rounded-md border-[0.5px] border-token-border-medium\">\n<h4 class=\"flex items-center relative text-token-text-secondary bg-token-main-surface-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md\"><span class=\"ez-toc-section\" id=\"42_Add_custom_Tracking\"><\/span>4.2\u00a0 Add custom Tracking<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<\/div>\n<ol>\n<li><strong>Extend AMP Analytics Configuration:<\/strong>\n<ul>\n<li>For custom event tracking, extend the <code>amp-analytics<\/code> configuration to include triggers for specific events like clicks.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"_5_Test_Your_Setup\"><\/span>\u00a05. Test Your Setup<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"51_Preview_and_Debug\"><\/span>5.1 Preview and Debug<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Use GTM Preview Mode:<\/strong>\n<ul>\n<li>In GTM, click <code>Preview<\/code> to enter preview mode.<\/li>\n<li>Enter the URL of your AMP page to start debugging.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Check Debug Pane:<\/strong>\n<ul>\n<li>Open your AMP page in the browser with the GTM debug pane enabled. Verify that tags fire correctly and data is collected as expected.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"52_Verify_Analytics_Data\"><\/span>5.2 Verify Analytics Data<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Real-Time Reports:<\/strong>\n<ul>\n<li>In your Google Analytics account, check the real-time reports to confirm that pageviews and events are being tracked accurately.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_6_Publish_Your_Container\"><\/span>Step 6: Publish Your Container<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"61_Submit_and_Publish\"><\/span>6.1 Submit and Publish<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Submit Changes:<\/strong>\n<ul>\n<li>Once you are satisfied with your setup, click <code>Submit<\/code> in the GTM workspace.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Publish Container:<\/strong>\n<ul>\n<li>Add a version name and description for documentation purposes.<\/li>\n<li>Click <code>Publish<\/code> to make your changes live.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Best_Practices_for_AMP_Tracking\"><\/span>Best Practices for AMP Tracking<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Back_Up_Existing_Configurations\"><\/span>Back Up Existing Configurations<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li><strong>Export Configuration:<\/strong>\n<ul>\n<li>Before making major changes, export your current container as a backup. This allows you to revert to the previous state if needed.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Maintain_Naming_Conventions\"><\/span>Maintain Naming Conventions<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li><strong>Consistent Naming:<\/strong>\n<ul>\n<li>Use consistent and descriptive names for tags, triggers, and variables to avoid confusion and conflicts.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Regular_Monitoring\"><\/span>Regular Monitoring<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li><strong>Monitor Data:<\/strong>\n<ul>\n<li>Regularly check your analytics data to ensure it is accurate and up-to-date. Look for anomalies that might indicate tracking issues.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Document_Changes\"><\/span>Document Changes<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li><strong>Keep Documentation:<\/strong>\n<ul>\n<li>Maintain detailed documentation of your GTM setup, including changes made and the purpose of each tag and trigger. This is especially useful for team collaborations and troubleshooting.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Example_Use_Case_Setting_Up_AMP_Tracking_for_a_Blog\"><\/span>Example Use Case: Setting Up AMP Tracking for a Blog<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li><strong>Export Existing Container:<\/strong>\n<ul>\n<li>Export the container from your existing blog site setup.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create New AMP Container:<\/strong>\n<ul>\n<li>In GTM, create a new container specifically for AMP.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Import and Adjust Configuration:<\/strong>\n<ul>\n<li>Import the existing container configuration into the new AMP container.<\/li>\n<li>Adjust site-specific settings such as Google Analytics IDs and URLs.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add AMP Analytics Configuration:<\/strong>\n<ul>\n<li>Add the <code>amp-analytics<\/code> configuration to your AMP HTML files.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Test and Publish:<\/strong>\n<ul>\n<li>Thoroughly test the setup in GTM\u2019s preview mode.<\/li>\n<li>Once confirmed, publish the AMP container.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>By following this detailed tutorial, you can efficiently set up AMP tracking with Google Tag Manager, ensuring accurate and comprehensive tracking of user interactions on your AMP pages. This enhances your ability to analyze and optimize your mobile content effectively.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Google Tag Manager (GTM) provides a streamlined way to manage and deploy marketing tags on your website or mobile app without modifying the codebase. For&#8230;<\/p>\n","protected":false},"author":210,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[270],"tags":[],"class_list":["post-6430","post","type-post","status-publish","format-standard","hentry","category-digital-marketing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set up AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager - Lite14 Tools &amp; 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:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-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 AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager - Lite14 Tools &amp; Blog\" \/>\n<meta property=\"og:description\" content=\"Google Tag Manager (GTM) provides a streamlined way to manage and deploy marketing tags on your website or mobile app without modifying the codebase. For...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"Lite14 Tools &amp; Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-05T19:36:08+00:00\" \/>\n<meta name=\"author\" content=\"admin3\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin3\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/\"},\"author\":{\"name\":\"admin3\",\"@id\":\"https:\/\/lite14.net\/blog\/#\/schema\/person\/3fcb0f4c8bd53264d6447eb6a6d36e81\"},\"headline\":\"How to Set up AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager\",\"datePublished\":\"2024-06-05T19:36:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/\"},\"wordCount\":792,\"publisher\":{\"@id\":\"https:\/\/lite14.net\/blog\/#organization\"},\"articleSection\":[\"Digital Marketing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/\",\"url\":\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/\",\"name\":\"How to Set up AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager - Lite14 Tools &amp; Blog\",\"isPartOf\":{\"@id\":\"https:\/\/lite14.net\/blog\/#website\"},\"datePublished\":\"2024-06-05T19:36:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lite14.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set up AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lite14.net\/blog\/#website\",\"url\":\"https:\/\/lite14.net\/blog\/\",\"name\":\"Lite14 Tools &amp; Blog\",\"description\":\"Email Marketing Tools &amp; Digital Marketing Updates\",\"publisher\":{\"@id\":\"https:\/\/lite14.net\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lite14.net\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lite14.net\/blog\/#organization\",\"name\":\"Lite14 Tools &amp; Blog\",\"url\":\"https:\/\/lite14.net\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lite14.net\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lite14.net\/blog\/wp-content\/uploads\/2025\/09\/cropped-lite-logo.png\",\"contentUrl\":\"https:\/\/lite14.net\/blog\/wp-content\/uploads\/2025\/09\/cropped-lite-logo.png\",\"width\":191,\"height\":178,\"caption\":\"Lite14 Tools &amp; Blog\"},\"image\":{\"@id\":\"https:\/\/lite14.net\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/lite14.net\/blog\/#\/schema\/person\/3fcb0f4c8bd53264d6447eb6a6d36e81\",\"name\":\"admin3\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lite14.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a47a48d3f454a7aa919c16c5d03a6b63ff4ecdd1d2405bfba02f09414226574?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a47a48d3f454a7aa919c16c5d03a6b63ff4ecdd1d2405bfba02f09414226574?s=96&d=mm&r=g\",\"caption\":\"admin3\"},\"url\":\"https:\/\/lite14.net\/blog\/author\/adeyemoemmanuel001\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set up AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager - Lite14 Tools &amp; 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:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"How to Set up AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager - Lite14 Tools &amp; Blog","og_description":"Google Tag Manager (GTM) provides a streamlined way to manage and deploy marketing tags on your website or mobile app without modifying the codebase. For...","og_url":"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/","og_site_name":"Lite14 Tools &amp; Blog","article_published_time":"2024-06-05T19:36:08+00:00","author":"admin3","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin3","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#article","isPartOf":{"@id":"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/"},"author":{"name":"admin3","@id":"https:\/\/lite14.net\/blog\/#\/schema\/person\/3fcb0f4c8bd53264d6447eb6a6d36e81"},"headline":"How to Set up AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager","datePublished":"2024-06-05T19:36:08+00:00","mainEntityOfPage":{"@id":"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/"},"wordCount":792,"publisher":{"@id":"https:\/\/lite14.net\/blog\/#organization"},"articleSection":["Digital Marketing"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/","url":"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/","name":"How to Set up AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager - Lite14 Tools &amp; Blog","isPartOf":{"@id":"https:\/\/lite14.net\/blog\/#website"},"datePublished":"2024-06-05T19:36:08+00:00","breadcrumb":{"@id":"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/lite14.net\/blog\/2024\/06\/05\/how-to-set-up-amp-accelerated-mobile-pages-tracking-with-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lite14.net\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Set up AMP (Accelerated Mobile Pages) Tracking with Google Tag Manager"}]},{"@type":"WebSite","@id":"https:\/\/lite14.net\/blog\/#website","url":"https:\/\/lite14.net\/blog\/","name":"Lite14 Tools &amp; Blog","description":"Email Marketing Tools &amp; Digital Marketing Updates","publisher":{"@id":"https:\/\/lite14.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lite14.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lite14.net\/blog\/#organization","name":"Lite14 Tools &amp; Blog","url":"https:\/\/lite14.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lite14.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/lite14.net\/blog\/wp-content\/uploads\/2025\/09\/cropped-lite-logo.png","contentUrl":"https:\/\/lite14.net\/blog\/wp-content\/uploads\/2025\/09\/cropped-lite-logo.png","width":191,"height":178,"caption":"Lite14 Tools &amp; Blog"},"image":{"@id":"https:\/\/lite14.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/lite14.net\/blog\/#\/schema\/person\/3fcb0f4c8bd53264d6447eb6a6d36e81","name":"admin3","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lite14.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a47a48d3f454a7aa919c16c5d03a6b63ff4ecdd1d2405bfba02f09414226574?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a47a48d3f454a7aa919c16c5d03a6b63ff4ecdd1d2405bfba02f09414226574?s=96&d=mm&r=g","caption":"admin3"},"url":"https:\/\/lite14.net\/blog\/author\/adeyemoemmanuel001\/"}]}},"_links":{"self":[{"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/posts\/6430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/users\/210"}],"replies":[{"embeddable":true,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/comments?post=6430"}],"version-history":[{"count":2,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/posts\/6430\/revisions"}],"predecessor-version":[{"id":6436,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/posts\/6430\/revisions\/6436"}],"wp:attachment":[{"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/media?parent=6430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/categories?post=6430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/tags?post=6430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}