Track referrer via JS and fallback method. #96