Skip to content
Tracking and technical

What is Referrer-Policy?

2 min read · Updated · By the Reveata team

Short answerReferrer-Policy is an HTTP header, meta tag or link attribute that tells the browser how much of the current page's address to send in the Referer header when a visitor follows a link or the page loads a resource, from the full URL to nothing at all.

When someone clicks a link, the browser normally tells the new site where they came from. That information is the referrer, and it is how analytics tools know a visit came from Google, a newsletter or a blog post. Referrer-Policy lets the site that holds the link decide how much of its own address is shared.

The HTTP header is spelt Referer, a misspelling kept since the early web; the policy uses the correct spelling.

The values

From MDN's Referrer-Policy reference (opens in a new tab):

Value What is sent
no-referrer Nothing
origin Only the origin, such as https://example.com/
same-origin The full URL within your site, nothing to other sites
strict-origin The origin, and nothing when going from HTTPS to HTTP
strict-origin-when-cross-origin The full URL within your site, the origin to other HTTPS sites, nothing on downgrades
origin-when-cross-origin The full URL within your site, the origin elsewhere
no-referrer-when-downgrade The full URL, except from HTTPS to HTTP
unsafe-url Always the full URL, which can leak private paths

When no policy is set, browsers use strict-origin-when-cross-origin. So by default another site learns that a visitor came from https://example.com/, but not from which page.

How to set it

  • An HTTP header: Referrer-Policy: strict-origin-when-cross-origin.
  • A meta tag: <meta name="referrer" content="origin">.
  • On one element: <a href="…" referrerpolicy="no-referrer">.
  • On one link: rel="noreferrer", which also removes the referrer.

What it means for analytics

For traffic you receive, other sites decide. With the default, you see the referring domain but rarely the exact page. A policy of no-referrer on a site, or links opened from some apps, means the visit arrives with no referrer and is counted as direct. UTM tags in the link survive any referrer policy, which is why tagging links you control is more reliable (UTM and ref parameters).

For your own pages, a strict policy is good privacy practice: it stops private paths and query strings, such as reset tokens, leaking to other sites.

For cross-domain journeys, the referrer matters to Reveata. When a visitor clicks from one of your domains to another, the second domain accepts the carried visitor id only if the referrer shows the click came from one of your own domains. Referrer-Policy: no-referrer or rel="noreferrer" on those links breaks the hand-off; the browser default works (Cross-domain tracking).

Reveata stores referrers without their query string or fragment, because those often carry personal data.

Frequently asked questions

Why do I see only the domain of a referring site, not the page?

The referring site uses the default strict-origin-when-cross-origin policy or a stricter one, so only its origin is sent. The page is not available to any analytics tool.

Does rel="noopener" remove the referrer?

No. noopener stops the new page from controlling the one that opened it. noreferrer removes the referrer and implies noopener. Only use noreferrer where you do not want the destination to know where visitors came from.

Should I set unsafe-url to help partners see my traffic?

It is rarely worth it. It sends full URLs, query strings included, to every site you link to. If a partner needs to measure your referrals, add UTM tags or a ref parameter to those links instead.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
GlossaryWhat is cross-domain tracking?Cross-domain tracking links a visitor's activity across two or more websites with different root domains, such as example.com and example-app.io, so the move from one to the other continues the same visit and keeps its original source instead of starting over as a new visitor.GlossaryWhat is referrer spam?Referrer spam (also called referral spam) is fake traffic sent with a made-up referring website, so that the spammer's domain shows up in your analytics reports and tempts you to visit it.GlossaryWhat are Core Web Vitals?Core Web Vitals are three measurements Google uses to describe a page's real-world user experience, namely Largest Contentful Paint (loading), Interaction to Next Paint (responsiveness) and Cumulative Layout Shift (visual stability).GlossaryWhat are event properties?Event properties are key–value details attached to an analytics event, such as the plan chosen or the button clicked on a signup event, so you can break one event down by those details instead of creating a separate event for every variation.GlossaryWhat is a canonical URL?A canonical URL is the one preferred address you want search engines to index and show for a page whose content is reachable at several URLs, usually declared with a rel="canonical" link in the page's head.GlossaryWhat is a Content Security Policy (CSP)?A Content Security Policy (CSP) is a set of rules a website sends to the browser, usually in a Content-Security-Policy header, listing which sources of scripts, styles, images and network connections the page is allowed to use, so injected or unexpected code is blocked.