observablehq / feedback

Customer submitted bugs and feature requests
42 stars 3 forks source link

Pass down top level document.referer to iframe #315

Open tomlarkworthy opened 2 years ago

tomlarkworthy commented 2 years ago

Is your feature request related to a problem? Please describe. document.referrer shows "observablehq.com" as the referrer, even for twitter clicked notebooks. This is how iframes are supposed to work. But like document.hash is overridden to passthrough top level page state, I wonder if something similar can be done for referrer.

Describe the solution you'd like In an ideal world the iframes document.referrer would match the top level document.referrer

Additional context

Its for https://observablehq.com/@endpointservices/plausible-analytics