Can you embed the Google Analytics code into the needhost.html page? It has been a long time since I managed EZproxy, but Google Analtyics was the easest plug-in tools to track referred URLs and many other things some years ago. Just a thought.
From: Code for Libraries <[log in to unmask]> On Behalf Of Eric Phetteplace
Sent: Thursday, November 15, 2018 3:43 PM
To: [log in to unmask]
Subject: Re: [CODE4LIB] Capturing referring URL for proxy problem?
Browser support is bad (Chrome & Firefox only <https://urldefense.proofpoint.com/v2/url?u=https-3A__developer.mozilla.org_en-2DUS_docs_Web_API_Document_referrer-23Browser-5Fcompatibility&d=DwIBaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=HYJfmmpRQCFN-a3OlsFrNfqLfwACzA92dvpSLMNl8OE&m=612NRIuCDgBVVz-7tg9XqsqYLnk2rxJSNXkC4_1T-FE&s=rxsfFDDUs1crCU53dPFp_SDKy0iEyqzKR6n6zr6_xJc&e=>).
In my testing, document.referrer only returns the google domain, not a full URI, for search referrals and was sometimes entirely empty (e.g. after going through our CAS login screen on the way through EZproxy). Good luck!
On Thu, Nov 15, 2018 at 12:29 PM Pennington, Buddy D. <[log in to unmask]>
> Hi all,
> We are an EZproxy shop. If someone clicks a proxied link and gets
> directed to the needhost.html error page because the proxied link is
> not included in the configuration file we collect that link and allow
> the user to submit the problem to us to fix. What we would also like
> to collect is the page the user is on when they click the problem
> link. For example, if they click a bad EBSCO link on a Canvas page, we
> want to collect both the EBSCO link and the Canvas page URL. Is there a fairly easy way to do this?
> Buddy Pennington
> Head of Library Systems & Technology (Librarian III) Miller Nichols
> Library University of Missouri--Kansas City