Solved

Last page visited right before a certain page view

  • 2 June 2022
  • 1 reply
  • 23 views

How to know the last page user visit before they visit a certain page view if there's no ?ref added to the page view URL?

icon

Best answer by Yuanyuan Zhang 2 June 2022, 17:01

View original

1 reply

Userlevel 3
Badge +5

Hi @stellac229

This is Yuanyuan from the Amplitude Support team - thank you for writing this post! 

If you are using our JS SDK, you can track the referrer easily with this instruction: https://developers.amplitude.com/docs/javascript#track-referrers

If your project data currently do not have any referrer information and you want to see the previous page before a certain page view, then it depends on your data structure. Do you have one page view event and different URLs as properties values? If yes, you can build a funnel analysis with “exact order”, use the page view event as step 1 and a certain page view as step 2, and then break down by step 1 with the property that contains URLs. 

Does this help? 

Best,

Reply