{"id":14879,"date":"2019-11-22T10:15:20","date_gmt":"2019-11-22T10:15:20","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=14879"},"modified":"2020-03-02T06:41:59","modified_gmt":"2020-03-02T06:41:59","slug":"how-to-check-whether-the-gtm-code-is-working-or-not-in-amp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-check-whether-the-gtm-code-is-working-or-not-in-amp\/","title":{"rendered":"How to check whether the GTM code is working or not in AMP?"},"content":{"rendered":"\n<p>In this tutorial, we will show you how to test if your GTM code is working or not for this follow the below steps.<\/p>\n\n\n\n<ol><li>First, go to your AMP Homepage.<\/li><li>Press the CTRL + U to check the source code.<\/li><li>Next, in source code press the CTRL + F and search for your Analytics ID.<\/li><li>If you have GTM installed correctly then it will display after the &lt;body&gt; tag like in the below screenshot.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/gtm.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1311\" height=\"491\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/gtm.png\" alt=\"\" class=\"wp-image-8226\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/gtm.png 1311w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/gtm-300x112.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/gtm-768x288.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/gtm-1024x384.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/gtm-50x19.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/gtm-60x22.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/gtm-100x37.png 100w\" sizes=\"(max-width: 1311px) 100vw, 1311px\" \/><\/a><\/figure>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<br><\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to test if your GTM code is working or not for this follow the below steps. First, go to your AMP Homepage. Press the CTRL + U to check the source code. Next, in source code press the CTRL + F and&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[34],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/14879"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=14879"}],"version-history":[{"count":3,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/14879\/revisions"}],"predecessor-version":[{"id":16686,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/14879\/revisions\/16686"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=14879"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=14879"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=14879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}