How to use Google Analytics in my Qt application?
-
wrote on 8 Sept 2016, 11:23 last edited by
I found that Google Analytic has simple api and I use it in my Qt game for mobile platform
At final I have class that allow send even and screen view from qml
please enjoy https://github.com/SteelProgramming/QtGoogleAnalytics
also my game if you interested)
https://play.google.com/store/apps/details?id=net.is.games.CatchTheGhost
thanks for your time
good luck -
Hi and welcome
Thank you for sharing.The game looks really nice!
-
wrote on 8 Sept 2016, 11:56 last edited by
thank you very much)
I will be use GA in my next game so project will grow -
@Galbarad
Is it QML or c++? or both? -
wrote on 8 Sept 2016, 12:01 last edited by
C++ core (position calculation and interaction between objects) and Qml visualization part (Particles and Image)
-
C++ core (position calculation and interaction between objects) and Qml visualization part (Particles and Image)
@Galbarad
Ok. cool. a hybrid.
I assume the game is closed source? -
wrote on 8 Sept 2016, 13:17 last edited by
nope, it's open source, but code is little dirty)
take https://drive.google.com/open?id=0B_sjcKIz2wKGNm9FNE9mLVR0MXc
in case some question or proposes please contact) -
nope, it's open source, but code is little dirty)
take https://drive.google.com/open?id=0B_sjcKIz2wKGNm9FNE9mLVR0MXc
in case some question or proposes please contact)@Galbarad
Oh that is so nice.
Dont worry. Its great for beginners with a complete project and they will
have no clue even if code is little dirty :)
Very thank you for sharing. -
wrote on 8 Sept 2016, 13:23 last edited by
welcome)
right now I'm writing new game Dragon's Fire)
all login will be on Qml side and C++ core only for interaction with server and loading levels
hope I found 2D artist for this game) -
welcome)
right now I'm writing new game Dragon's Fire)
all login will be on Qml side and C++ core only for interaction with server and loading levels
hope I found 2D artist for this game)@Galbarad
sounds like RPG ;)
Happy programming! -
wrote on 8 Sept 2016, 13:28 last edited by
thank you)
-
wrote on 30 Sept 2019, 14:02 last edited by
best way to use Google Analytics in Qt is
https://github.com/Larpon/QtFirebase -
wrote on 12 Aug 2022, 08:33 last edited by
While the mentioned solutions might work, Google now introduced a new API GA4 and the old one will probably be deprecated later. Firebase is a good way to go but for someone like me, who just needs some basic events reported it's way too big. I ended up writing my own very simple library for sending events with GA4. It's here if anybody is interested.