amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Add general support for referrer header removal on amp-analytics

Open j-e-shaw opened this issue 10 years ago • 4 comments

We would like support for removing the referrer header on amp-analytics tags. This can be done by using a temporary iframe.

Meta tags may also work: http://stackoverflow.com/questions/6817595/remove-http-referer/32014225#32014225

j-e-shaw avatar May 02 '16 20:05 j-e-shaw

/cc @avimehta @rudygalfi

ericlindley-g avatar May 02 '16 23:05 ericlindley-g

As discussed offline, this could be offered by passing the no-referrer option to fetch in supported browsers. We will not use iframes for this for well documented performance reasons.

We can use meta-referrer to polyfill the referrer removal where fetch is not supported.

cramforce avatar May 03 '16 15:05 cramforce

Is this still needed? Also, any more detail on motivation for removing the referrer to provide context?

Per @lannka amp-pixel supports this currently.

rudygalfi avatar Jun 02 '17 23:06 rudygalfi

done by #16734

lannka avatar Aug 03 '18 23:08 lannka