Page A
Page B
Page C
If the user is coming from page A
do something on page C
(within the same website)
If the user is coming from page B
do something else on page C
(within the same website)
What would be the best approach to do that in JS? (dont use document.referrer
)