How to add data from a backend service

Hi
We’ve add Matomo to track our front end application. Now we’d like to add some data that’s calculated in the backend and is not available for the front end. This will be done once a day.
How do we correlate it to the same user that’s being reported for the front end activities?
Is there a way to report it using a REST API?
Does it have to be an “event” with a payload of some kind or is there another type of reporting? It’s not exactly and event but rather a certain level of activity that we’d like to report, on a periodic basis and regardless of a specific user action.
Thanks in advance for your help!

Hi,

Yes, you can use the reporting API to send data directly to Matomo:
https://developer.matomo.org/api-reference/tracking-api

It is the same that the JS tracker uses and you can use one of the clients to simplify the requests.
https://developer.matomo.org/guides/tracking-api-clients