Skip to content

Commit

Permalink
Add goatcounter analytics (#76)
Browse files Browse the repository at this point in the history
Co-authored-by: alifeee <[email protected]>
  • Loading branch information
LouiseMcMahon and alifeee authored Sep 5, 2024
1 parent d76913a commit c255c6d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ github_username: "sheffieldhackspace"
facebook_username: "SHHMakers"
instagram_username: "SHHMakers"
logo: /assets/images/logo.svg
goat_counter_url: "https://sheffieldhackspacewebsite.goatcounter.com"

# Build settings
theme: jekyll-theme-basically-basic
Expand Down
12 changes: 12 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{% assign base.url = 'bbf-PI.531.001.085x107.jpg' %}


<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand Down Expand Up @@ -42,4 +45,13 @@
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-config" content="/assets/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">

{% if jekyll.environment == "production" %}
<!-- GoatCounter analytics - {{ site.goat_counter_url }} -->
<script data-goatcounter="{{ site.goat_counter_url}}/count" async src="//gc.zgo.at/count.js" ></script>
<noscript>
<img src="{{ site.goat_counter_url }}/count?p={{ page.url }}">
</noscript>
{% endif %}

</head>
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: '2'

services:
jekyll:
image: jekyll/jekyll:latest
command: jekyll serve --watch --force_polling --verbose
environment:
- JEKYLL_ENV=development
ports:
- 4000:4000
volumes:
Expand Down

0 comments on commit c255c6d

Please sign in to comment.