qt-piwik-tracker
qt-piwik-tracker copied to clipboard
C++ Qt Tracker Library for Piwik / Matomo Analytics
Qt C++ Piwik / Matomo Tracker Library
PiwikTracker is a C++ Qt 5 library for tracking with the open-source analytics platform Piwik, now Matomo.
Features
- sending visits
- sending events
- sending pings
- custom dimensions can be sent along with the requests
- language, screen resolution and operating system will be tracked automatically
- client id will be generated and stored automatically
How to use this library
- checkout the git repository
- include piwiktracker.pri
to your project like this:
include (qt-piwik-tracker/piwiktracker.pri)
- include
piwiktracker.h
in your.cpp
file - use the library to talk to your Piwik / Matomo server
// the 3rd parameter is the site id
PiwikTracker *piwikTracker = new PiwikTracker(qApp, QUrl("https://yourserver"), 1);
piwikTracker->setCustomDimension(1, "some dimension");
piwikTracker->sendVisit("my/path");
References
Disclaimer
This SOFTWARE PRODUCT is provided by THE PROVIDER "as is" and "with all faults." THE PROVIDER makes no representations or warranties of any kind concerning the safety, suitability, lack of viruses, inaccuracies, typographical errors, or other harmful components of this SOFTWARE PRODUCT.
There are inherent dangers in the use of any software, and you are solely responsible for determining whether this SOFTWARE PRODUCT is compatible with your equipment and other software installed on your equipment. You are also solely responsible for the protection of your equipment and backup of your data, and THE PROVIDER will not be liable for any damages you may suffer in connection with using, modifying, or distributing this SOFTWARE PRODUCT.