From: Jason Etheridge Date: Thu, 7 May 2015 20:02:00 +0000 (-0400) Subject: prevent staff client warnings w/ Google Analytics X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c4d74c7a00e70f88d05e158bb6d6d78bf7ccf130;p=working%2FEvergreen.git prevent staff client warnings w/ Google Analytics In particular, the Security Warning that goes "You have requested an encrypted page that contains some unencrypted information..." Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/templates/opac/parts/goog_analytics.tt2 b/Open-ILS/src/templates/opac/parts/goog_analytics.tt2 index ce1e1ae19d..5070537eef 100644 --- a/Open-ILS/src/templates/opac/parts/goog_analytics.tt2 +++ b/Open-ILS/src/templates/opac/parts/goog_analytics.tt2 @@ -10,7 +10,7 @@ (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + ga.src = ('oils:' == document.location.protocol || 'https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();