Preserve Precheck referrer attribution
Precheck is an interstitial page that redirects the visitor to your application after the check completes, which reloads the webpage. Because of this, the original referrer is not preserved, so your web analytics tool, such as Google Analytics or Adobe Analytics, may attribute referred first-time visitors that encounter Precheck as direct traffic. However, you can preserve the referrer attribution by using one of the following methods:
Only one method is necessary. If you enable both, then the UTM parameters method takes precedence.
- Restore the referrer (recommended): Stores the original external referrer when the user encounters Precheck and restores it after the check completes. We recommend using this method whenever possible since it preserves the native analytics attribution behavior and is generally easier to implement.
- Add UTM parameters: Appends UTM parameters to the post-Precheck URL based on the original referrer.
Restore the referrer (recommended)
During the Precheck flow, HUMAN preserves the original external referrer before any navigation or reload occurs and stores it in sessionStorage under the px_referrer key. When px_referrer is present, the script reads and removes the stored value, then uses it to override document.referrer for the current page. When the key is absent, the browser’s normal document.referrer behavior stays in place. Client-side analytics tools that read document.referrer then apply their existing attribution and classification logic.
To preserve the original referrer after Precheck, add the following script to all pages that are protected by Precheck. Alternatively, you can include it on all pages. This script only takes effect when a preserved px_referrer value is present after a Precheck flow.
This script must be included at the beginning of <head> so that it executes before any tag manager, analytics library, or other client-side code that may read document.referrer.
Add UTM parameters
HUMAN can write the referral information into UTM query parameters.
- If a referrer is present, HUMAN sets
utm_sourceto the domain (such aswww.example.com) andutm_mediumtoreferral. - If a referrer is absent, HUMAN sets
utm_sourcetodirectandutm_mediumtonone.
If the URL already contains UTM parameters, HUMAN leaves those parameters unchanged.
- Navigate to Sightline Cyberfraud Defense > Settings > Mitigation > Precheck Settings.
- Under Precheck Configuration > Precheck Enablement, click the Preserve referral information in UTM parameter checkbox to enable the setting.
- Configure your analytics channel grouping or attribution rules to classify traffic based on the
utm_sourceandutm_mediumvalues added by HUMAN. The setup depends on your analytics platform. For example, in Google Analytics, you can use Custom channel groups.