Skip to content

Commit

Permalink
Analytics for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbenito committed Mar 31, 2024
1 parent 7780a0f commit 301a5e5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- Simple Analytics - 100% privacy-first analytics -->
<script async defer
src="https://{{ config.extra.analytics.script_domain | default('scripts.simpleanalyticscdn.com')}}/latest.js"
data-collect-dnt="true"
data-hostname="{{ config.extra.analytics.hostname }}"></script>
<noscript>
<img src="https://{{ config.extra.analytics.noscript_domain | default('queue.simpleanalyticscdn.com' )}}/noscript.gif?collect-dnt={{ config.extra.analytics.collect_dnt }}&hostname={{ config.extra.analytics.hostname }}&path={{ page.url }}"
alt=""
referrerpolicy="no-referrer-when-downgrade">
</noscript>
6 changes: 6 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ extra:
link: https://twitter.com/aai_transferlab
- icon: fontawesome/brands/linkedin
link: https://de.linkedin.com/company/appliedai-institute-for-europe-ggmbh
analytics:
provider: simpleanalytics
hostname: pydvl.org
script_domain: scripts.simpleanalyticscdn.com
noscript_domain: queue.simpleanalyticscdn.com
collect_dnt: true

markdown_extensions:
- abbr
Expand Down

0 comments on commit 301a5e5

Please sign in to comment.