When is the best time to fetch Http Referer?

Marcus

Well-known member
#1
I want to log the referer webpages my users were on before they go to my community. There are multiple ways when a user would enter my community with a new referer:

1. first time he visits my page
2. user visits my page, goes to another page and comes back again

I would like to save referers for both guests and members. Where in xenforos system is it best to hook in?

There are xenforo_sessions, but I am not sure when this is used, at every page view, or only when the user logs in?
 
Top