function getReferrer(url) {
    const referrerData = parseReferrer(url);
    return getFinalReferrer(referrerData);
}
One-step function to get the final referrer from a URL

@param {string} [url] - URL to parse (defaults to current URL)
@returns {string|null} Final referrer value