How do I track a Phonegap app with Matomo?
To measure your Phonegap app with Matomo (Piwik), you can include the default JavaScript Tracking code in your app pages. Then you will need to make one change to the default Tracking code:
- Locate the line:
var u="//{$MATOMO_URL}";
, - Replace it with the following:
var u="https://{$MATOMO_URL}";
. Note thathttp:
orhttps:
is pre-pended in front of your Matomo URL.
Congratulations: your Phonegap app users will be correctly tracked in Matomo.