Thrift module: referrer

ModuleServicesData typesConstants
referrer AppReferral
Referrer

Data structures

Struct: AppReferral

KeyFieldTypeDescriptionRequirednessDefault value
1rawstringEg 'android-app://{package_id}[/{scheme}[/{host}[/{path}]]][#Intent;{...}]' on Android (the full raw Intent provided to the app) required
2appIdstringEg 'com.google.android.gm' for the Android GMail app optional

Struct: Referrer

KeyFieldTypeDescriptionRequirednessDefault value
1urlurl.UrlWeb: The "raw" value in here is the value of document.referrer as reported by the browser Native app: If this is populated, we will use it. If it is not populated, it will be synthesised using the nativeAppSource field. optional
4componentstringthe component that was clicked on for this referral, if the previous page was served by the guardian optional
10linkNamelink.LinkNameThe link name associated with the element clicked. optional
5platformplatform.Platformthe platform of the referrer, if the previous page was served by the guardian optional
6viewIdstringthe viewId of the referrer, if the previous page was served by the guardian optional
7emailstringif this was from a guardian email, what email it was optional
8nativeAppSourcesource.SourceIf this referral was from a native app, the source of the referral optional
9googlegooglereferral.GoogleReferralIf this referral was from google, and we have additional data on the query string, the values we got. optional
11tagIdFollowedstringoptional
12appReferralAppReferraloptional
13capiIdstringThe Guardian Content API (CAPI) Id of the referring content. Uniquely identifies Content, even if its URL is updated. Changing a content's url is generally avoided, but may be done for SEO reasons (eg Coronavirus explainer). See also 'Evolving URLs': https://docs.google.com/document/d/1s6xsGHcQOgdPBTbGYwqTXuCz90e3lHKOnkBFW6yCvqY/edit# optional

Information about the referrer - previous page - that the reader navigated to
this one from.