Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Pintea/tiniest-analytics
VERY simple cross-platform C++ analytics for games (using Google Analytics)
https://github.com/Pintea/tiniest-analytics
Last synced: 2 months ago
JSON representation
VERY simple cross-platform C++ analytics for games (using Google Analytics)
- Host: GitHub
- URL: https://github.com/Pintea/tiniest-analytics
- Owner: Pintea
- License: mit
- Created: 2017-12-12T17:23:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-01T14:31:03.000Z (about 1 year ago)
- Last Synced: 2024-08-04T02:11:01.982Z (6 months ago)
- Language: C++
- Size: 19.5 KB
- Stars: 97
- Watchers: 5
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - tiniest-analytics - platform C++ analytics for games (using Google Analytics) (GameProgramming)
README
# tiniest-analytics
IMPORTANT NOTE: CURRENT CODE NO LONGER WORKS FOR GOOGLE ANALYTICS 4, BECAUSE GA4 DOESN'T ACCEPT NON-HTTPS REQUESTS.
Tiniest Analytics is a *very* simple to use, cross-platform (tested on win/osx/linux/ios/android) and basically *very tiny* analytics system written in C++ (less than 100 lines of code), made specifically for games. It uses libcurl to post events to your Google Analytics account.
Usage: call TAnalytics_Init("UA-12345678-1", uniqueId) at startup, call TAnalytics_Shutdown() when closing the app, and TAnalytics_Update() each frame. You also need libcurl in your project (ssl not needed).
There's only one function to use when posting an event, e.g.
TAnalytics_Event("GameStart", "linux");
TAnalytics_Event("WeaponClicked", "RocketLauncher");
TAnalytics_Event("MapStarted", "SinglePlayer", "MapName.map");
![alt text](https://user-images.githubusercontent.com/292486/33986723-206b0bc8-e0c7-11e7-9ac9-8f4f841385ed.jpg)
![alt text](https://user-images.githubusercontent.com/292486/33986724-20895b32-e0c7-11e7-8114-b203803867e4.jpg)
![alt text](https://user-images.githubusercontent.com/292486/33986722-204d395e-e0c7-11e7-8d1d-4f73cfcb577a.jpg)
Original authors:
Mihai Dragomir - [email protected]
Mihai Gosa (Pintea) - [email protected] or @gosamihai on twitter
Initially developed for the 'Door Kickers' games.
License: MIT