only send on unload if not sent by link. Only send on click if url href starts with http