HTTP Referrer
The Referrer-Policy HTTP header controls how much referrer information (sent via the Referer header) should be included with requests.
Read more at developer.mozilla.org
Iris uses the Shopify's goreferrer package to expose the Context.GetReferrer()
method.
The GetReferrer
method extracts and returns the information from the "Referer"
(or "Referrer"
) header and url query parameter as specified in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy.
Which Referrer
looks like that:
The ReferrerType
is the enum for a Referrer.Type value (indirect, direct, email, search, social). The available types are:
The GoogleType
can be one of those:
Example
How to curl
:
Last updated