Skip to content

VERY simple cross-platform C++ analytics for games (using Google Analytics)

License

Notifications You must be signed in to change notification settings

binogure-studio/tiniest-analytics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

google-analytics

Google Analytics is a very simple to use, cross-platform (tested on win/osx/linux) and basically very tiny analytics system written in C++ (less than 150 lines of code), made specifically for games. It uses libcurl to post events to your Google Analytics account.

Usage

Call GoogleAnalytics.initialize("UA-12345678-1", uniqueId) at startup, and GoogleAnalytics.flush() 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.

GoogleAnalytics.send_event_action("GameStart", "linux");
GoogleAnalytics.send_event_action_label("WeaponClicked", "RocketLauncher", "Loading);
GoogleAnalytics.send_event_action_label_value("MapStarted", "SinglePlayer", "MapName.map", 150);

alt text

alt text

alt text

Original authors: Mihai Dragomir - dmc@pixelshard.com Mihai Gosa (Pintea) - pintea@inthekillhouse.com or @gosamihai on twitter Initially developed for the 'Door Kickers' games.

Forked by: Xavier Sellier - contact@binogure-studio.com Enhanced for City Game Studio game

License: MIT

About

VERY simple cross-platform C++ analytics for games (using Google Analytics)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 87.2%
  • C++ 12.1%
  • Python 0.7%