When visitors move from page to page within your site, the referrer property does not contain the address of the page the visitor came from. This is because Wix sites are built as single page applications . To get the previous page a visitor was visiting within your site, you can use wix-storage to store the visitor’s current page and retrieve the visitor’s previous page.
Here is a very simple example of a “back button” site:
-
View the Live demo in a browser page
-
Open the Example template in the Wix Editor
I hope this helps.