Matomo settings

How to plug Matomo to your instance in order to measure users behaviour.

Matomo is the analytics tool that we have chosen to implement within OFN as it is fully GDPR compliant. OFN has a global Matomo account. Just ask on Slack on instance managers channel for someone to give you access to this global account.

As a superadmin, here is what you see in the configuration "Matomo Settings" tab:

Matomo URL: Fill in the following URL https://openfoodnetwork.innocraft.cloud/

Do not delete the "/" at the end of the URL otherwise it's not working! The URL is the same for ALL instances

Matomo Site ID: The image below shows where to find this number in the global Matomo account.

If you don't see your instance in the list, you will have to create a new Matomo site.

Matomo Tag Manager URL: The tag manager allows you to set up events for very specific user interactions. Navigate to your tag manager via the main menu:

The Matomo Tag Manager URL is copied from the Install Code section of Matomo Tag Manager. Ensure you select the right container and environment as these options change the URL.

The URL should look something like this, your container ID (eg abc123xyz) will be different: https://cdn.innocraft.cloud/openfoodnetwork.innocraft.cloud/container_abc123xyz.js Select update after entering all the settings and that's it, the Matomo tracking code will now be embedded in pages on your OFN instance.

Lastly if you are using Matomo, you will want to notify your users. Do this by selecting "Display Matomo section on cookies policy page" in Configuration > General Settings.