Skip to content

add plausible analytics, closes #22 #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ dashboards:
url: /pages/whats-left
- title: Benchmarks
url: /benchmarks
- title: Website Analytics
url: https://plausible.io/rustpython.github.io

# Build settings
theme: minima
Expand Down
9 changes: 5 additions & 4 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link defer async rel="stylesheet" href="{{ "/assets/style.css" | relative_url }}">
<link defer async rel="stylesheet" href="{{ "/assets/media.css" | relative_url }}">
<link defer async rel="stylesheet" href="{{ "/assets/github.css" | relative_url }}">

<!-- webmanifest -->
<link rel="manifest" href="{{site.baseurl}}/manifest.webmanifest">

Expand All @@ -21,7 +21,8 @@
<link rel="apple-touch-icon" href="{{site.baseurl}}/assets/apple-touch-icon.png">

{%- feed_meta -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- endif -%}

<!-- plausible analytics -->
<script defer data-domain="rustpython.github.io" src="https://plausible.io/js/plausible.js"></script>

</head>