• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

include/H29-Mar-2020-6848

src/H29-Mar-2020-559377

README.mdH A D29-Mar-2020912 3526

README.md

1qt-google-analytics
2================
3
4Qt5 classes for providing google analytics usage in a Qt/QML application.
5
6## Building
7Include ```qt-google-analytics.pri``` in your .pro file.
8
9## Using
10Please make sure you have set your application information using ```QApplication::setApplicationName``` and ```QApplication::setApplicationVersion```.
11
12### In C++:
13```
14GAnalytics tracker("UA-my-id");
15tracker.sendScreenView("Main Screen");
16```
17
18### In QtQuick:
19Register the class on the C++ side using ```qmlRegisterType<GAnalytics>("analytics", 0, 1, "Tracker");```
20```
21Tracker {
22  id: tracker
23  trackingID: "UA-my-id"
24}
25
26[...]
27tracker.sendScreenView("Main Screen")
28```
29
30There is also an example application in the examples folder.
31
32## License
33Copyright (c) 2014-2016, University of Applied Sciences Augsburg.
34All rights reserved. Distributed under the terms and conditions of the BSD License. See separate LICENSE.txt.
35