diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-14 17:48:24 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-14 17:48:24 -0800 |
commit | ff72d8a5a5ca253ba7a217b1309d5d942745760e (patch) | |
tree | 688587b9f81d7995ae91e62ed59fb213dd6e73ca /fatcat_scholar | |
parent | 28745a73e1ef97cdc353bfc3787c60740bc0768c (diff) | |
download | fatcat-scholar-ff72d8a5a5ca253ba7a217b1309d5d942745760e.tar.gz fatcat-scholar-ff72d8a5a5ca253ba7a217b1309d5d942745760e.zip |
goatcounter: supress 'title', for privacy
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/templates/base.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 138940d..da3510b 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -287,6 +287,13 @@ document.getElementById("search_form").onsubmit = function(){ </script> {% if settings.ENABLE_GOATCOUNTER -%} {# for local testing: <script>window.goatcounter = {allow_local: true};</script> #} + <script> + window.goatcounter = { + /* title leaks search query, so don't report it */ + title: null, + {# to allow localhost connections (dev) to be colected, set: allow_local: true #} + }; + </script> <script data-goatcounter="{{ settings.GOATCOUNTER_ENDPOINT }}" async src="{{ settings.GOATCOUNTER_SCRIPT_URL }}"></script> {%- endif %} {% block postscript %}{% endblock %} |