diff --git a/README.md b/README.md index 16d6ab121..0e074cf8f 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ - Built-in Search - Atom Feeds - PWA -- Google Analytics +- Google Analytics / GoatCounter - SEO & Performance Optimization ## Documentation diff --git a/_config.yml b/_config.yml index 341e45d81..79d451fe0 100644 --- a/_config.yml +++ b/_config.yml @@ -52,6 +52,9 @@ google_site_verification: # fill in to your verification string google_analytics: id: # fill in your Google Analytics ID +goatcounter: + id: # fill in your Goatcounter ID + # Prefer color scheme setting. # # Note: Keep empty will follow the system prefer color by default, diff --git a/_includes/goatcounter.html b/_includes/goatcounter.html new file mode 100644 index 000000000..4d21d21ec --- /dev/null +++ b/_includes/goatcounter.html @@ -0,0 +1,8 @@ + + + + diff --git a/_includes/js-selector.html b/_includes/js-selector.html index 0e7f6f4f0..1a1fa580b 100644 --- a/_includes/js-selector.html +++ b/_includes/js-selector.html @@ -105,4 +105,9 @@ {% if site.google_analytics.id != empty and site.google_analytics.id %} {% include google-analytics.html %} {% endif %} + + + {% if site.goatcounter.id != empty and site.goatcounter.id %} + {% include goatcounter.html %} + {% endif %} {% endif %}