Returns both the observed and recorded referrer paths, relative to the current origin.
The function first checks sessionStorage for the values previously stored under
referrerStorageKeyActual and referrerStorageKeyRecord, ensuring continuity as the
visitor navigates within the site. When no cached data exists (first page view), it
derives both values from document.referrer, stripping the origin so only the path
remains.
Returns both the observed and recorded referrer paths, relative to the current origin.
The function first checks
sessionStoragefor the values previously stored underreferrerStorageKeyActualandreferrerStorageKeyRecord, ensuring continuity as the visitor navigates within the site. When no cached data exists (first page view), it derives both values fromdocument.referrer, stripping the origin so only the path remains.