Integration with Matomo has been introduced to gather and assess data regarding website traffic.
Matomo Analytics serves as an open-source web analytics solution, offering extensive insights into the usage of websites or applications. With a wide range of tools and features, it allows for tracking, analyzing, and reporting on visitor behavior and engagement. Matomo is specifically designed to prioritize user privacy and data ownership.
Enable the integration and click the "Configure" button to proceed. You will be directed to a form where you will find a URL that needs to be accessed to reach the Matomo platform. Please note that the URL displayed below is provided as an example, and the "//admin.panelalpha.com/" portion will vary for each installation.
Proceed to the provided URL.
In case your Matomo is not installed yet:
A "Welcome" page will appear. Start the installation by pressing the "Next" button.
Start the installation with the system check. If everything is fine, you may proceed to the next step.
Database setup - the data are automatically fetched from your system, you do not have to change anything at this point. Press "Next" to continue.
Creating the tables - tables are created automatically, once ready, press "Next" to continue.
Create a superuser account. The entered here data will be used for logging into Matomo.
Set up a website - at this point you are creating the first website added to Matomo.
Congratulations, your Matomo installation is now ready. Press the Continue To Matomo button. You will be redirected to the login window.
# Log into Matomo
Use the superuser credentials to log in (see point 5).
You will be moved to dashboard once you are successfully logged in. Proceed to Administration → Personal → Security.
There press "Create New Token" button and provide a short description, confirm.
Your API Token will be immediately generated. Copy it and keep safe as you will need it soon in your PanelAlpha configuration.
Go back to your PanelAlpha → Configuration → Integrations → Matomo. Paste the just generated token in the API Token field. Press "Update" to complete the configuration.
# Additional Information
If you encounter any problems when accessing the configured Matomo address, you will need to modify the following file:
- Open that file and set the enable_trusted_host_check variable to 0 as in example below:
enable_trusted_host_check = 0
- Alternatively, add the following line:
trusted_hosts = "IP_ADDRESS:PORT"
Remember to replace IP_ADDRESS with the server IP, and PORT with the port with the configured Matomo (the default port is 8079).