Google Analytics added for Companion usage and firmware downloads

statistics
This commit is contained in:
bsongis
2014-05-27 12:13:50 +02:00
parent ffbae2592b
commit 148e3e3180
10 changed files with 118 additions and 53 deletions
+21
View File
@@ -0,0 +1,21 @@
#include <QtNetwork>
class GoogleAnalytics: public QObject
{
Q_OBJECT
public:
GoogleAnalytics();
~GoogleAnalytics();
void sendPageView(QString page);
void sendEvent(QString category, QString action, QString label);
protected slots:
void slot_receive(QNetworkReply * reply);
protected:
int userId;
QNetworkAccessManager * networkManager;
};
extern GoogleAnalytics ga;