pollymc/libraries/ganalytics
Jamie Mansfield 524fc5b6ec
NOISSUE Fix string formatting issues
This allows translations to have more control over the output :)
2021-04-08 18:55:20 +01:00
..
include NOISSUE tabs -> spaces 2018-07-15 14:51:05 +02:00
src NOISSUE Fix string formatting issues 2021-04-08 18:55:20 +01:00
CMakeLists.txt
LICENSE.txt
README.md

qt-google-analytics

Qt5 classes for providing google analytics usage in a Qt/QML application.

Building

Include qt-google-analytics.pri in your .pro file.

Using

Please make sure you have set your application information using QApplication::setApplicationName and QApplication::setApplicationVersion.

In C++:

GAnalytics tracker("UA-my-id");
tracker.sendScreenView("Main Screen");

In QtQuick:

Register the class on the C++ side using qmlRegisterType<GAnalytics>("analytics", 0, 1, "Tracker");

Tracker {
  id: tracker
  trackingID: "UA-my-id"
}

[...]
tracker.sendScreenView("Main Screen")

There is also an example application in the examples folder.

License

Copyright (c) 2014-2016, University of Applied Sciences Augsburg. All rights reserved. Distributed under the terms and conditions of the BSD License. See separate LICENSE.txt.