From 979bd469d62ffb0ad53391a31aa789978ce1d6b8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 22 Oct 2020 14:02:47 -0700 Subject: integrate goatcounter JS (analytics) --- fatcat_scholar/templates/base.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fatcat_scholar/templates/base.html') diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 079b298..6302f6f 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -276,6 +276,10 @@ document.getElementById("search_form").onsubmit = function(){ document.getElementById("search_submit_button").classList.add("loading"); }; +{% if settings.ENABLE_GOATCOUNTER -%} + {# for local testing: #} + +{%- endif %} {% block postscript %}{% endblock %} -- cgit v1.2.3