matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.71k stars 2.62k forks source link

How do I tell Piwik a user is using the app ? #11692

Closed rksh1997 closed 7 years ago

rksh1997 commented 7 years ago

Hello. What I need to do is to put some script in index.html, so that every time a user opens the app, piwik will know that, I am not using javascript tracker. So, I want to send an ajax request to my backend, then my backend will talk to piwik. But what request should I tell my backend to send to piwik for this action ? I have only piwik actions on userRegister and userLogin, so if a user logged in a while ago and he didn't logout, how can piwik know that user is using the app so that I can get Monthly Active Users.

sgiehl commented 7 years ago

What kind of application are you trying to track? If it's a web app you should be able to include the javascript tracking code. For mobile apps based on iOS or Android you could use our Mobile SDKs (https://github.com/piwik/piwik-sdk-android / https://github.com/piwik/piwik-sdk-ios). There are also other SDKs you can use for other kind of applications.