Code Monkey home page Code Monkey logo

gdx-analytics's Introduction

Release

Full documentation

User tracking for your LibGDX game.

Compatibility Desktop WebGL Android iOS
Google Analytic OK OK not tested not tested
Matomo (Piwik) not tested not tested not tested not tested

GDPR compliance : if you want to send data to identify the players (even randomly generated ID), you'll have to comply to GDPR law and ask consent to the players before performing any requests. You could collect data without player's consent but you can't use any identifier and then having less accurate statistics.

Setup

Google Analytics

You need to create a new website to track and get its tracker ID.

see Example here

Matomo (piwik)

see Example here

Test with a local instance (docker)

run docker compose :

$ cd docker/matomo
$ docker-compose up web

Install : go to http://localhost:9000

Setup DB

  • db address : db
  • login: root
  • pwd : root
  • db name : piwik

Setup User

  • login : matomo
  • pwd : matomo
  • email : your email

Setup website

  • name : localhost
  • geo : anything

Then run integration test to send an event :

  • idsite must be your created site id (1 for the first one)

you can see the result http://localhost:9000/index.php?module=CoreHome&action=index&date=today&period=day&idSite=1#?idSite=1&period=day&date=today&category=General_Actions&subcategory=Events_Events

gdx-analytics's People

Contributors

mgsx-dev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.