Tracking mobile REST API

Hi!

I would like to track requests from my mobile apps but also I want to avoid my apps to generate additional requests.

The idea is to add Matomo calls on the backend REST API endpoints and call Matomo API from my backend.

Is this possible? Is there any API endpoint on Matomo side to catch those requests so that I don’t have to fake browser requests?

Thanks!

Hi there, I might not be fully understanding the question, there is a tracking API Tracking API User Guide - APIs - Matomo Analytics if that is what you are after?

you can send tracking hits straight from your backend to the tracking api. I just forward the needed data from my mobile apps and avoid any extra client requests

Hi! I did it exactly that way. Although it’s not very accurate because I have caching in my app. But it would be stupid to generate additional requests just to track views if things can be fetched from cache and avoiding any requests to the backend.