Add more logging
set referrer on any unload event, and check referrer/newurl if either is set