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

Overview

tiniest-analytics

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

alt text

alt text

Original authors:
Mihai Dragomir - [email protected]
Mihai Gosa (Pintea) - [email protected] or @gosamihai on twitter
Initially developed for the 'Door Kickers' games.


License: MIT

Issues
  • libcurl

    libcurl

    Hey,

    Thank you for that lib. Im trying to use it, however Im having trouble compiling libcurl for godot. May you share a bit of your godot repository in order to be able to compile libcurl + godot together.

    I used those prebuilt binaries: https://github.com/djp952/prebuilt-libcurl-nossl

    This is the git repository I forked from yours: https://github.com/binogure-studio/tiniest-analytics

    Thanks!

    opened by xsellier 2
  • Use curl_easy_escape for proper URL encoding of values

    Use curl_easy_escape for proper URL encoding of values

    Since you're using cURL, you might want to use curl_easy_escape to urlencode values, instead of ReplaceStrChar.

    This should help cut down the number of lines by 7.69% :)

    opened by killermosi 1
Releases(1.1)
Owner
Mihai Gosa
Mihai Gosa
TrenchBroom is a modern cross-platform level editor for Quake-engine based games.

TrenchBroom is a modern cross-platform level editor for Quake-engine based games.

TrenchBroom 1.2k Aug 1, 2022
One framework for creating powerful cross-platform games.

MonoGame One framework for creating powerful cross-platform games. The spiritual successor to XNA with thousands of titles shipped across desktop, mob

MonoGame 8.7k Aug 6, 2022
This is a list of different open-source video games and commercial video games open-source remakes.

This is a list of different open-source video games and commercial video games open-source remakes.

Ivan Bobev 94 Jul 31, 2022
A very simple 2D game engine written in C++, using SDL and Lua.

2D Game Engine written in C++, SDL, and Lua. This is a simple 2D game engine written in C++ and using SDL and Lua scripting

Gustavo Pezzi 16 Jul 13, 2022
Cross-platform version of Heboris C7EX using a hardware-accelerated SDL 2.0 renderer

Heboris C7EX - unofficial version (YGS2K EX) This version contains the source code for Heboris C7EX. It requires a C compiler, SDL 2.0, SDL 2.0 mixer,

Brandon McGriff 9 May 27, 2022
A cross-platform, top-down 2D space shooter written in C using only system libraries.

A cross-platform, top-down 2D space shooter written in C using only system libraries.

Tarek Sherif 1.3k Jul 30, 2022
Part copy from the Google Code repository by Shiru, part fork of SNES Game Sound System by Shiru

Part copy from the Google Code repository by Shiru, part fork of SNES Game Sound System by Shiru

null 4 Dec 10, 2021
An OpenGL Engine Written In C Using A Very OOP-Like Way Of Programming

A Simple Engine in its very first stages of becoming a, Game Engine or just a framework for making games using OpenGL. Here are the features of the Op

DevHedron 26 Jul 9, 2022
Bluebox is a very simple game written in C. It's my first major project, inspired by ThePowderToy and World2D.

About: Bluebox is a very simple game written in C. It's my first major project, inspired by ThePowderToy and World2D. Bluebox is 100% open-source. Eve

Aggelos 1 Aug 2, 2022
A set of libraries and tools to make MSX games using the C programming language.

ubox MSX lib This is a set of libraries and tools to make MSX games using the C programming language. There are three main components: ubox: thin wrap

Juan J. Martínez 42 May 30, 2022
A flutter package for making game levels map like candy crush or similar games using flutter with ability to be horizontal or vertical

Game Levels Scrolling Map A package for making game levels map like candy crush or similar games using flutter with ability to be horizontal or vertic

Mohamed Sayed 10 Jul 1, 2022
Real-time Water - Fast Water Simulation for Games Using Height Fields

In this project a water-simulation was implemented based on the approach suggested in the presentation "Fast Water Simulation for Game

Henrik Patjens 137 Jun 4, 2022
A single-header C++ library for making simple 2D games

A single-header C++ library for making simple 2D games PLATFORM: Windows LANGUAGE: C++ ENVIRONMENT: Visual Studio Why? Learning C++ is often seen as d

Sumo Digital Academy 44 Jul 28, 2022
Dragon's Dice Roller aims to be a lightweight, simple, reliable and easy-to-use dice roller for RPG games.

Dragon's Dice Roller is the first and (so far the only) open source RPG dice roller written in C available on GitHub. It aims to be a lightweight, simple, reliable and easy-to-use dice roller for any kind of role-playing game.

Michael Kolesidis 10 Apr 22, 2022
KlayGE is a cross-platform open source game engine with plugin-based architecture.

KlayGE KlayGE is a cross-platform open source game engine with plugin-based architecture. It's started since 2003. The explicit goal of KlayGE is: to

Minmin Gong 1.8k Aug 8, 2022
A cross-platform 2D game engine

nCine nCine is a cross-platform 2D game engine. It is released under the MIT License, Copyright (c) 2011-2021 Angelo Theodorou. For additional informa

nCine 733 Jul 31, 2022
Powerful, mature open-source cross-platform game engine for Python and C++, developed by Disney and CMU

Panda3D Panda3D is a game engine, a framework for 3D rendering and game development for Python and C++ programs. Panda3D is open-source and free for a

Panda3D 3.4k Aug 3, 2022
Polycode is a cross-platform framework for creative code.

Polycode is a cross-platform framework for creative code. You can use it as a C++ API or as a standalone scripting language to get easy and simple acc

Ivan Safrin 2.4k Jul 21, 2022
A powerful free cross-platform RTS game engine

Spring RTS game engine README Spring (formerly TASpring) is an Open Source Real Time Strategy game engine. Visit our project homepage for help, sugges

Spring RTS 2.7k Aug 7, 2022