How does a Referrer-Policy header change what analytics can see?

The linking page's policy decides how much of its address the browser passes on. The usual browser default sends only the linking site's origin, and PostDeploy keeps only the referrer's host anyway, so nothing is lost. A no-referrer policy removes even the host, so the visit has no referring site unless the link carries utm_source.

Last updated 26 November 2026. By Paul Badarau.

A fictional game studio runs a blog at one domain and a store at another, set up as two PostDeploy Projects. The blog copied Referrer-Policy: no-referrer from a security checklist. For months, the store's reports show most visits from the blog as Direct. After the blog switches to strict-origin-when-cross-origin, the store's referrer list shows the blog's host.

The policy belongs to the page that holds the link. It can come from a Referrer-Policy response header, a <meta name="referrer"> tag, or an attribute on the link itself, such as rel="noreferrer". The common values work like this:

  • strict-origin-when-cross-origin is the default in current browsers. Other sites receive only the origin, such as https://blog.example, and a link from HTTPS to HTTP sends nothing.
  • origin and strict-origin also send only the origin.
  • no-referrer sends nothing to anyone, and same-origin sends nothing to other sites.
  • unsafe-url sends the full address, path and query string included.

PostDeploy keeps only the host of a referrer. The script strips the path before it sends anything, and the server stores the referring host. So every policy that passes the origin gives PostDeploy all it uses, and a full address adds nothing. Only policies that send no referrer change what you see. The visit then loses its referring site and falls into Direct unless the link has a utm_source tag.

To check a site's policy:

  1. Run curl -sI https://blog.example and look for a referrer-policy line.
  2. Search the page source for name="referrer" and for noreferrer on links.
  3. Click the link with the browser's network panel open, and read the Referer header on the request for the next page.

For your own sites, the browser default is a good choice. It shows other sites only your origin, which keeps paths private, and it still lets each of your Projects see where visitors came from. Avoid no-referrer and same-origin if your site and your app are separate Projects, because each will see the other's visitors as Direct.

You cannot change another site's policy. If a site you post links on sends no referrer, add utm_source and utm_campaign to those links, the only two tags PostDeploy keeps.

The product page for this is Analytics.

Start your 14-day free trial