Skip to content

Commit

Permalink
remove google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Oct 31, 2023
1 parent 60bb26b commit f6c8789
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 48 deletions.
27 changes: 0 additions & 27 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,33 +60,6 @@ extra:
link: https://www.instagram.com/repath.studio/
- icon: fontawesome/brands/github
link: https://github.com/re-path/
consent:
cookies:
analytics:
name: Google Analytics
checked: false
title: Cookie consent
description: >- #
We use cookies to recognize your repeated visits and preferences, as well
as to measure the effectiveness of our documentation and whether users
find what they're searching for. With your consent, you're helping us to
make our website better.
analytics:
provider: google
property: G-EJXPVG0694
feedback:
title: Was this page helpful?
ratings:
- icon: material/emoticon-happy-outline
name: This page was helpful
data: 1
note: >-
Thanks for your feedback!
- icon: material/emoticon-sad-outline
name: This page could be improved
data: 0
note: >-
Thanks for your feedback!

markdown_extensions:
- admonition
Expand Down
18 changes: 0 additions & 18 deletions theme/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,4 @@
<!-- Content -->
{% block content %}
{{ super() }}
{% endblock %}

<!-- Analytics -->
{% block analytics %}
{{ super() }}

<!-- Track external links -->
<script>
document.addEventListener("DOMContentLoaded", function() {
document.body.addEventListener("click", ev => {
if (ev.target instanceof HTMLElement) {
var el = ev.target.closest("a[href^=http]")
if (el)
ga("send", "event", "outbound", "click", el.href)
}
})
})
</script>
{% endblock %}
3 changes: 0 additions & 3 deletions theme/partials/copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@

<div class="md-copyright">
{% if config.copyright %}
<div class="md-copyright__highlight">
<a href="#__consent">Change cookie settings</a>
</div>
{{ config.copyright }}
{% endif %}

Expand Down

0 comments on commit f6c8789

Please sign in to comment.