{"id":18246,"date":"2021-06-14T13:17:23","date_gmt":"2021-06-14T13:17:23","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=18246"},"modified":"2021-06-14T13:25:07","modified_gmt":"2021-06-14T13:25:07","slug":"how-to-exclude-the-amp-traffic-from-cdn-ampproject-org","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-exclude-the-amp-traffic-from-cdn-ampproject-org\/","title":{"rendered":"How to exclude the AMP traffic from cdn.ampproject.org ?"},"content":{"rendered":"\n<p>Are you seeing a lot of AMP traffic from&nbsp;<strong>cdn.ampproject.org<\/strong>&nbsp;to your site?<\/p>\n\n\n\n<p>If you\u2019re using the AMP for WP plugin, Google is likely caching some of those AMP pages and sending you the traffic, and then counting it as a referral.<\/p>\n\n\n\n<p>To avoid this, you\u2019ll want to use a referral exclusion for&nbsp;<strong>cdn.ampproject.org<\/strong>. In this guide, we\u2019ll show you how.<\/p>\n\n\n\n<h4>Use referral exclusion<\/h4>\n\n\n\n<p>We recommend adding a referral exclusion with the following domain:&nbsp;<strong>cdn.ampproject.org<\/strong>.<\/p>\n\n\n\n<p>This will prevent all cached AMP subdomains served by Google from breaking sessions incorrectly.<\/p>\n\n\n\n<h4>Adding referral traffic sources<\/h4>\n\n\n\n<p><strong>Step 1<\/strong>: Sign into Analytics account at\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/analytics.google.com\/\" target=\"_blank\">https:\/\/analytics.google.com<\/a>.<\/p>\n\n\n\n<p><strong>Step 2<\/strong>:\u00a0Click Admin.<br><\/p>\n\n\n\n<p><img decoding=\"async\" loading=\"lazy\" width=\"558\" height=\"264\" srcset=\"https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Google-Analytics-Admin.png 1122w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Google-Analytics-Admin-300x142.png 300w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Google-Analytics-Admin-768x363.png 768w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Google-Analytics-Admin-1024x484.png 1024w\" src=\"https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Google-Analytics-Admin.png\" alt=\"\"><br><strong>Step 3<\/strong>: In the ACCOUNT column, use the dropdown to select the Analytics account that contains the property you want to work with.<\/p>\n\n\n\n<p><strong>Step 4<\/strong>:\u00a0In the PROPERTY column, use the dropdown to select your property.<\/p>\n\n\n\n<p><strong>Step 5<\/strong>: Click Tracking Info.<\/p>\n\n\n\n<p><img decoding=\"async\" loading=\"lazy\" width=\"558\" height=\"365\" srcset=\"https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Your-Google-Analytics-Settings.png 1080w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Your-Google-Analytics-Settings-300x196.png 300w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Your-Google-Analytics-Settings-768x503.png 768w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Your-Google-Analytics-Settings-1024x670.png 1024w\" src=\"https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Your-Google-Analytics-Settings.png\" alt=\"\"><strong>Step 6<\/strong>: Click Referral Exclusion List.<img decoding=\"async\" loading=\"lazy\" width=\"558\" height=\"353\" srcset=\"https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Your-Property-Referral-Exclusion-List.png 1080w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Your-Property-Referral-Exclusion-List-300x190.png 300w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Your-Property-Referral-Exclusion-List-768x486.png 768w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Your-Property-Referral-Exclusion-List-1024x648.png 1024w\" src=\"https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Your-Property-Referral-Exclusion-List.png\" alt=\"\"><br><strong>Step 7<\/strong>: To add a domain, click + ADD REFERRAL EXCLUSION.<\/p>\n\n\n\n<p><strong>Step 8<\/strong>: Enter\u00a0<strong>cdn.ampproject.org<\/strong>.<\/p>\n\n\n\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Google-Analytic-Exclude-this-domain-from-your-referral-traffic.png\" alt=\"\" width=\"558\" height=\"488\" srcset=\"https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Google-Analytic-Exclude-this-domain-from-your-referral-traffic.png 1080w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Google-Analytic-Exclude-this-domain-from-your-referral-traffic-300x136.png 300w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Google-Analytic-Exclude-this-domain-from-your-referral-traffic-768x347.png 768w, https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Google-Analytic-Exclude-this-domain-from-your-referral-traffic-1024x463.png 1024w\"><br><strong>Step 9<\/strong>: Click Create to save.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.monsterinsights.com\/wp-content\/uploads\/2018\/03\/Setup-Referral-exclusion-for-cdn.ampproject.com_.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>That\u2019s it! Now you know how to set a referral exclusion for your cdn.ampproject.com, so Google Analytics doesn\u2019t count some of your AMP pages as a referral.<\/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>Are you seeing a lot of AMP traffic from&nbsp;cdn.ampproject.org&nbsp;to your site? If you\u2019re using the AMP for WP plugin, Google is likely caching some of those AMP pages and sending you the traffic, and then counting it as a referral. To avoid this, you\u2019ll want to use a referral exclusion&#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\/18246"}],"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=18246"}],"version-history":[{"count":9,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18246\/revisions"}],"predecessor-version":[{"id":18255,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/18246\/revisions\/18255"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=18246"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=18246"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=18246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}