Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use Google Analytics in my Qt application?
Forum Updated to NodeBB v4.3 + New Features

How to use Google Analytics in my Qt application?

Scheduled Pinned Locked Moved Solved General and Desktop
13 Posts 3 Posters 4.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Galbarad
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      Thank you for sharing.

      The game looks really nice!

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Galbarad
        wrote on last edited by
        #3

        thank you very much)
        I will be use GA in my next game so project will grow

        mrjjM 1 Reply Last reply
        1
        • G Galbarad

          thank you very much)
          I will be use GA in my next game so project will grow

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Galbarad
          Is it QML or c++? or both?

          1 Reply Last reply
          0
          • G Offline
            G Offline
            Galbarad
            wrote on last edited by
            #5

            C++ core (position calculation and interaction between objects) and Qml visualization part (Particles and Image)

            mrjjM 1 Reply Last reply
            0
            • G Galbarad

              C++ core (position calculation and interaction between objects) and Qml visualization part (Particles and Image)

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Galbarad
              Ok. cool. a hybrid.
              I assume the game is closed source?

              1 Reply Last reply
              0
              • G Offline
                G Offline
                Galbarad
                wrote on last edited by
                #7

                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)

                mrjjM 1 Reply Last reply
                1
                • G Galbarad

                  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)

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @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.

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    Galbarad
                    wrote on last edited by
                    #9

                    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)

                    mrjjM 1 Reply Last reply
                    0
                    • G Galbarad

                      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)

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Galbarad
                      sounds like RPG ;)
                      Happy programming!

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        Galbarad
                        wrote on last edited by
                        #11

                        thank you)

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          Galbarad
                          wrote on last edited by
                          #12

                          best way to use Google Analytics in Qt is
                          https://github.com/Larpon/QtFirebase

                          1 Reply Last reply
                          2
                          • H Offline
                            H Offline
                            Hitokage
                            wrote on last edited by
                            #13

                            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.

                            1 Reply Last reply
                            1

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved