Posts weekly site stats in Slack, like this:
okfde: 1000 visits
okfde/froide: 800 visits
okfde/matomo-slack-bot: 160 visits
- Fork this repo.
- Create a Slack Webhook and save the URL as a Github Secret named
SLACK_WEBHOOK
(repo settings -> Secrets -> Actions). - Create a Matomo Token by navigating to Settings -> Personal -> Security -> Authentification tokens and save it as secret
MATOMO_TOKEN
. - Create the secrets
MATOMO_SERVER
with your Matomo URL (e.g.https://matomo.example.com
),SITE_ID
with your Matomo site identifier (can be found in the dashboard url:/index.php?module=CoreHome&action=index&idSite=123&...
, in this case123
) andSITE_URL
(your website's URL, e.g.https://example.com
) - Trigger the action manually to test it by going to Actions -> post -> Run workflow.
- By default, the bot will send the updates every Monday on 10 AM CEST. You can change this in the workflow file.