SPAs have always had that problem.... I actually really hate SPAs for that reason.
Depending on your setup, my preferred method to deal with this is to have the developers write the referrer info into the Data Layer..
So, on the first page, if there is a document.referrer, then set that, if it's...