How to determine the page the user is on when conducting a search (and the search term)? | Community
Skip to main content
Level 2
October 28, 2019
Solved

How to determine the page the user is on when conducting a search (and the search term)?

  • October 28, 2019
  • 1 reply
  • 1341 views

I have internal search term set up to capture the query but was wondering how I can determine what page the user was on when submitting the query.

Thanks,

Patrick Flynn

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pablo_Childe

Typically if the search result is displayed on a new page SERP. You could look at referring URL or capture a "previous page" s.prop or evar.

I also like to capture search term itself as an evar. as well, to allow you to see user behaviour after they perform a search.

gltu

1 reply

Pablo_Childe
Community Advisor
Pablo_ChildeCommunity AdvisorAccepted solution
Community Advisor
October 29, 2019

Typically if the search result is displayed on a new page SERP. You could look at referring URL or capture a "previous page" s.prop or evar.

I also like to capture search term itself as an evar. as well, to allow you to see user behaviour after they perform a search.

gltu