Skip to main content
Solved

Last page visited right before a certain page view

  • June 2, 2022
  • 1 reply
  • 711 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?

Best answer by Yuanyuan Zhang

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,

View original
Did this topic help you find an answer to your question?

1 reply

Yuanyuan Zhang
Team Member
Forum|alt.badge.img+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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings