Remove Plausible analytics

This commit is contained in:
Jonah Aragon 2023-10-11 22:41:37 -05:00
parent c48a9e4829
commit 693046348f
Signed by: jonah
SSH Key Fingerprint: SHA256:oJSBSFgpWl4g+IwjL96Ya8ocGfI7r6VKnQw+257pZZ0
3 changed files with 0 additions and 30 deletions

View File

@ -1,23 +0,0 @@
var feedback = document.forms.feedback
/* Show feedback */
feedback.hidden = false
feedback.addEventListener("submit", function(ev) {
ev.preventDefault()
/* Retrieve page and feedback value */
var page = document.location.pathname
var data = ev.submitter.getAttribute("data-md-value")
/* Send feedback value */
console.log(page, data)
plausible(data)
/* Disable form and show note, if given */
feedback.firstElementChild.disabled = true
var note = feedback.querySelector(
".md-feedback__note [data-md-value='" + data + "']"
)
if (note)
note.hidden = false
})

View File

@ -12,9 +12,6 @@ copyright: |
extra:
generator: false
homepage: https://www.privacyguides.org/
analytics:
provider: plausible
property: blog.privacyguides.org
social:
- icon: simple/mastodon
link: https://mastodon.neat.computer/@privacyguides
@ -83,7 +80,6 @@ plugins:
privacy:
assets_exclude:
- cdn.jsdelivr.net/npm/mathjax@3/*
- api.privacyguides.net/*
links_noopener: true
social:
cards: !ENV [CARDS, true]
@ -158,7 +154,6 @@ extra_css:
- assets/stylesheets/extra.css?v=2.10.0
extra_javascript:
- assets/javascripts/mathjax.js
- assets/javascripts/feedback.js
nav:
- Home: 'https://www.privacyguides.org/'

View File

@ -1,2 +0,0 @@
<script defer data-domain="{{ config.extra.analytics.property }}" src="https://api.privacyguides.net/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>