Set webReferrer. URL for SPA pages
Hi everyone,
We’ve been troubleshooting an issue with our marketing channel processing in Adobe Analytics, where some of our paid search landing pages are incorrectly showing up under the "Organic Search" channel. (Here’s the original post for context: link).
After digging into it, we realized that one of the culprits might be how our SPA (single-page application) handles the webReferrer.url value.
Originally, we were just using the default document.referrer value for every pageview rules (page load and SPA view rules), including SPA route changes. The problem? Even after the user landed via Paid Search, the subsequent virtual pageviews were still showing www.google.com as the referrer, which messed up our channel attribution.
Example flow:
Paid Search → Landing Page (full page load) → Next Page (SPA route change)
→ Referrer still shows www.google.com = bad attribution.
We’ve looked around the forums and haven’t found a clear best practice for setting webReferrer.url specifically for SPAs. Some folks suggest overwriting it with the current page URL, others say to leave it blank with SPA route change—but there doesn’t seem to be a solid consensus.
Has anyone figured out the ideal way to handle webReferrer for SPA pageviews to avoid these attribution issues?
Thanks in advance!