API for Increment view count

Hello,

We have a custom app that can’t take the Matomo SDK.
It uses WP as a backend.
We are considering collecting visit data from the app manually.
Once we have collected this data in a table, where/how should we pass it to Matomo?
An endpoint? Programmatically in WP (better)
Can you advise?
Or, perhaps Matomo wp has some way to accept this data from the app so we don’t have to store it?

Thank You

Hi Mila,

I’m not sure to understand what you are trying to achieve.
Could you explain me a bit more?
Kind regards

Mat

Hello,

I’m sorry if my explanations are not detailed.

I have a custom app and want to add view count from matomo and we create the API to show the view count but the problem right now is we can’t increment the view, for example, if a user visits my app it’s should count to page view but my custom app can’t take the matomo SDK.

so, we are considering collecting the visit data manually, once it’s collected data in the table, how do we pass it to matomo? I need your help with this? can you advise?

Thank You

Hi,

To count the visits in your app you can either use the http tracking api https://developer.matomo.org/api-reference/tracking-api or any of the other tracking api client https://developer.matomo.org/guides/tracking-api-clients

Kind regards

Mat