{"id":18494,"date":"2022-07-23T12:53:04","date_gmt":"2022-07-23T12:53:04","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=18494"},"modified":"2023-02-15T10:20:56","modified_gmt":"2023-02-15T10:20:56","slug":"how-to-add-ga4-in-ampforwp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-add-ga4-in-ampforwp\/","title":{"rendered":"Google Analytics ( GA4 ) integration in AMPforWP"},"content":{"rendered":"\n<p>We have added the Google Analytics 4 ( GA 4 ) integration in AMPforWP v1.0.80. <\/p>\n\n\n\n<p>In this tutorial, we will tell you about the implementation of GA4 in the amp.<\/p>\n\n\n\n<p><strong>Follow the steps below to Enable GA4 in AMP:<\/strong><\/p>\n\n\n\n<p>From your WordPress dashboard, go to your sidebar. Head on over to&nbsp;<strong>AMP option panel<\/strong>&nbsp;-&gt; Click on&nbsp;<strong>Settings<\/strong>&nbsp;-&gt;&nbsp;<strong>Analytics<\/strong>&nbsp;-&gt; Turn ON Google Analytics 4 and add the required fields then click on the \u201c<strong>Save Changes<\/strong>\u201d button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2023\/02\/Screenshot-39.png\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"404\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2023\/02\/Screenshot-39-1024x404.png\" alt=\"\" class=\"wp-image-18562\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2023\/02\/Screenshot-39-1024x404.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2023\/02\/Screenshot-39-300x118.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2023\/02\/Screenshot-39-768x303.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2023\/02\/Screenshot-39-50x20.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2023\/02\/Screenshot-39-60x24.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2023\/02\/Screenshot-39-100x39.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2023\/02\/Screenshot-39.png 1343w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">After Saving the changes, you can check the source code.<\/figcaption><\/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.<\/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>We have added the Google Analytics 4 ( GA 4 ) integration in AMPforWP v1.0.80. In this tutorial, we will tell you about the implementation of GA4 in the amp. Follow the steps below to Enable GA4 in AMP: From your WordPress dashboard, go to your sidebar. Head on over&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18494"}],"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=18494"}],"version-history":[{"count":11,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18494\/revisions"}],"predecessor-version":[{"id":18565,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18494\/revisions\/18565"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=18494"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=18494"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=18494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}