22 lines
411 B
C++
Executable File
22 lines
411 B
C++
Executable File
#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;
|