{"id":11215,"date":"2019-06-18T10:17:18","date_gmt":"2019-06-18T10:17:18","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=11215"},"modified":"2019-06-18T10:18:45","modified_gmt":"2019-06-18T10:18:45","slug":"errors-with-google-tag-manager","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/errors-with-google-tag-manager\/","title":{"rendered":"Errors with Google Tag-Manager"},"content":{"rendered":"\n<p><strong>First, you need to create a Tag manager (Container ID) :<\/strong><\/p>\n\n\n\n<p>Create the Google Tag Manager container at:<br><a href=\"https:\/\/tagmanager.google.com\/\">https:\/\/tagmanager.google.com<\/a><\/p>\n\n\n\n<p>Then you should create separate containers for the standard WordPress site and the&nbsp; AMP version.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/create-container-google-tag-manager.png\"><img decoding=\"async\" loading=\"lazy\" width=\"926\" height=\"431\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/create-container-google-tag-manager.png\" alt=\"\" class=\"wp-image-5973\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/create-container-google-tag-manager.png 926w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/create-container-google-tag-manager-300x140.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/create-container-google-tag-manager-768x357.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/create-container-google-tag-manager-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/create-container-google-tag-manager-60x28.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/08\/create-container-google-tag-manager-100x47.png 100w\" sizes=\"(max-width: 926px) 100vw, 926px\" \/><\/a><\/figure>\n\n\n\n<p>Creating the AMP container then you must choose container type= \u201cAMP\u201d<br>When creating the container for use with the NON-AMP then you should create a container type= \u201cWeb\u201d<\/p>\n\n\n\n<p>This means there will be different \u201ccontainer\u201d \/ \u201ccontainer type\u201d and different tags for the AMP and the non-AMP version of the site.<\/p>\n\n\n\n<p>If you are using the Non-AMP container ID in AMP also then this error will appear.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"543\" height=\"101\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/06\/GTM-2.png\" alt=\"\" class=\"wp-image-11216\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/06\/GTM-2.png 543w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/06\/GTM-2-300x56.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/06\/GTM-2-50x9.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/06\/GTM-2-60x11.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/06\/GTM-2-100x19.png 100w\" sizes=\"(max-width: 543px) 100vw, 543px\" \/><\/figure>\n\n\n\n<p>If you don&#8217;t know how to generate container ID in AMP then follow this <a href=\"https:\/\/ampforwp.com\/tutorials\/article\/gtm-in-amp\/\">tutorial<\/a>. <\/p>\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.<\/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>First, you need to create a Tag manager (Container ID) : Create the Google Tag Manager container at:https:\/\/tagmanager.google.com Then you should create separate containers for the standard WordPress site and the&nbsp; AMP version. Creating the AMP container then you must choose container type= \u201cAMP\u201dWhen creating the container for use with&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[5],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/11215"}],"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=11215"}],"version-history":[{"count":3,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/11215\/revisions"}],"predecessor-version":[{"id":11219,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/11215\/revisions\/11219"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=11215"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=11215"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=11215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}