Prevent self-referrals in AMP pages
See original GitHub issueCurrently, when not overridden, the Viewer of an AMP page always reports as referrer window.document.referrer
This has the side effect that AMP-ANALYTICS always reports as referrer the previous visited site, and does not keep the original referrer of the current session when, for example, a user visits a second page.
At the end this means that a site like AMP Project, or a PWA that uses AMP Shadow, has almost all its traffic reported as referral.
I think that AMP could have the notion of session, like it already has for client in cid-impl.js
, so we can do things like preserving the referral for the current session.
Issue Analytics
- State:
- Created 7 years ago
- Comments:23 (20 by maintainers)
Top Results From Across the Web
Self-Referrals - Analytics Help - Google Support
A self-referral is referral traffic that originates from pages within your own domain. In general, self-referrals indicate that there are Analytics ...
Read more >AMP Tech Guide: Making It Work - Perficient, Inc.
1. The first step is to make sure that 'ampproject.org' is added into the Referral Exclusion List under the Property Settings in the...
Read more >Why the bounce rate of my AMP pages is so high?
1. On all your non-AMP pages, set the value of the parameter 'useAMPclientID' to «true» · 2. On all your AMP pages, include...
Read more >AMP Google Analytics Tracking - Learn to track AMP pages
Learn how to track amp pages in Google Analytics through the AMP Google ... like Cloudflare, then disable it for AMP pages via...
Read more >Instant-loading AMP pages from your own domain
Your page appears under your URL instead of the google.com/amp URL. an animation showing how the URL stays consistent with the publisher's URL...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
correct. This issue will get fixed by that PR.
On Tue, Aug 22, 2017 at 1:17 PM, Rudy Galfi notifications@github.com wrote:
Oohhh, I think I get it now:
window.services.viewer.obj.getReferrerUrl()
In this case, I get
https://ampbyexample-com.cdn.ampproject.org/v/s/ampbyexample.com/?amp_js_v=6
as my referrer.