Integrating Matomo with Revlitix allows for seamless data synchronization and enhanced analytics capabilities. Follow these steps to set up the integration:
What is the "token_auth" and where can I find this token to use in the API calls?
The token_auth
acts as your password for authenticating API requests in Matomo. Each Matomo user has a unique token_auth
.
Step 1: Generate Your Matomo API Token
To authenticate API requests, you'll need your unique token_auth
from Matomo.
For Matomo 4 and Newer:
Log in to your Matomo account.
Navigate to the Matomo Admin via the top menu.
Go to Personal > Security.
Click on Create new token at the bottom of the page.
Confirm your account password.
Enter a purpose for the token.
Click on Create new token.
The newly created token will be displayed. Save it securely, as you won’t be able to view it again after leaving the screen. If the token is lost, you'll need to generate a new one.
For Matomo 3 and Older:
Log in to your Matomo (formerly Piwik) account.
Click on Administration in the top menu.
Select API from the left menu to find your
token_auth
.
If needed, you can re-generate the token_auth
through Administration > Personal Settings.
Important: Do not enable the 'Only allow secure requests' option while generating the token, as this will prevent Revlitix from fetching the segment data.
Step 2: Provide the API Token to Revlitix
Log in to your Revlitix account.
Navigate to the Integrations module.
Under Available Integrations, locate the Matomo integration card.
Click on the Connect button.
In the provided field, enter the
token_auth
you obtained from Matomo.Click Save to establish the connection.