diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bee8bd5..e0c8cda 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -73,7 +73,8 @@ jobs: MKDOCS_ENABLE_PLUGIN_SOCIAL: true MKDOCS_ENABLE_PLUGIN_SOCIAL_CARDS: true MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.GH_TOKEN_MATERIAL_INSIDERS }} - MKDOCS_GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }} + MKDOCS_MATOMO_URL_BASE: https://matomo.data-wax.com + MKDOCS_MATOMO_SITE_ID: 5 - name: Setup Pages uses: actions/configure-pages@v5 diff --git a/content/theme/partials/integrations/analytics/matomo.html b/content/theme/partials/integrations/analytics/matomo.html new file mode 100644 index 0000000..46da0d1 --- /dev/null +++ b/content/theme/partials/integrations/analytics/matomo.html @@ -0,0 +1,21 @@ + + diff --git a/mkdocs-free.yml b/mkdocs-free.yml index 1486f72..c006273 100644 --- a/mkdocs-free.yml +++ b/mkdocs-free.yml @@ -135,6 +135,10 @@ theme: # Customization extra: + analytics: + provider: matomo + matomo_url: !ENV [MKDOCS_MATOMO_URL_BASE, "https://matomo.data-wax.com"] + matomo_site_id: !ENV [MKDOCS_MATOMO_SITE_ID, 5] geotribu_main_site: https://geotribu.fr/ consent: title: Consentement 🍪 diff --git a/mkdocs.yml b/mkdocs.yml index 82717e6..0721123 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -183,6 +183,10 @@ theme: # Customization extra: + analytics: + provider: matomo + matomo_url: !ENV [MKDOCS_MATOMO_URL_BASE, "https://matomo.data-wax.com"] + matomo_site_id: !ENV [MKDOCS_MATOMO_SITE_ID, 5] geotribu_main_site: https://geotribu.fr/ theme_insiders_flavor: true consent: