diff --git a/_config.yml b/_config.yml index 975a01b..a7a2f39 100644 --- a/_config.yml +++ b/_config.yml @@ -101,9 +101,8 @@ share-links-active: # Remove this if you don't want a link in the footer url-pretty: "MyWebsite.com" # eg. "deanattali.com/beautiful-jekyll" -# --- Misc --- # -# Fill in your Disqus shortname (NOT the userid) if you want to support Disqus comments -#disqus: "" +# --- Web Statistics Section --- # +# ...Beautiful Jekyll integrates with Google Analytics and Matomo(aka Piwik) # Fill in your Google Analytics ID to track your website using GA #google_analytics: "" @@ -111,6 +110,21 @@ url-pretty: "MyWebsite.com" # eg. "deanattali.com/beautiful-jekyll" # Google Tag Manager ID #gtm: "" +# Matomo (aka Piwik) Web statistics +# Uncomment this Matomo options to enable tacking: +# - Provide a valid site id given by your Matomo instance. +# - Enter the Matomo URI without the protocoll. +# - Enable/ Disable the Opt-Out feature for users. This will ad a Do-Not-Track option in the footer section. + +# matomo: +# site_id: "9" +# uri: "demo.wiki.pro" +# opt-out: true + +# --- Misc --- # +# Fill in your Disqus shortname (NOT the userid) if you want to support Disqus comments +#disqus: "" + # Facebook App ID # fb_app_id: "" diff --git a/_includes/footer.html b/_includes/footer.html index befd56a..a5fc95b 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -32,6 +32,13 @@  •  {{ site.url-pretty }} {% endif %} + + {% if site.matomo %} +  •  + {% if site.matomo.opt-out %} + Do-not-Track + {% endif %} + {% endif%}

diff --git a/_includes/head.html b/_includes/head.html index fad8f4b..1142dfa 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -88,7 +88,7 @@ {% elsif site.avatar %} {% endif %} - + @@ -117,4 +117,8 @@ {% endif %} + {% if site.matomo %} + {% include matomo.html %} + {% endif %} + diff --git a/_includes/matomo.html b/_includes/matomo.html new file mode 100644 index 0000000..e53a3ef --- /dev/null +++ b/_includes/matomo.html @@ -0,0 +1,17 @@ +{% if site.matomo %} + + + +{% endif %}