{"id":17691513,"url":"https://github.com/mgsx-dev/gdx-analytics","last_synced_at":"2025-03-30T22:24:10.454Z","repository":{"id":82412172,"uuid":"143723322","full_name":"mgsx-dev/gdx-analytics","owner":"mgsx-dev","description":null,"archived":false,"fork":false,"pushed_at":"2018-08-06T14:13:47.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T03:31:16.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgsx-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-06T12:09:29.000Z","updated_at":"2018-08-06T14:13:48.000Z","dependencies_parsed_at":"2023-06-15T14:00:40.175Z","dependency_job_id":null,"html_url":"https://github.com/mgsx-dev/gdx-analytics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgsx-dev%2Fgdx-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgsx-dev%2Fgdx-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgsx-dev%2Fgdx-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgsx-dev%2Fgdx-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgsx-dev","download_url":"https://codeload.github.com/mgsx-dev/gdx-analytics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246386848,"owners_count":20768904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T12:08:57.319Z","updated_at":"2025-03-30T22:24:10.439Z","avatar_url":"https://github.com/mgsx-dev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Release](https://jitpack.io/v/mgsx-dev/gdx-analytics.svg)](https://jitpack.io/#mgsx-dev/gdx-analytics)\n\n[Full documentation](https://jitpack.io/com/github/mgsx-dev/gdx-analytics/master-SNAPSHOT/javadoc/index.html)\n\nUser tracking for your LibGDX game.\n\n| Compatibility    | Desktop      | WebGL        | Android      | iOS          |\n|------------------|:------------:|:------------:|:------------:|:------------:|\n| Google Analytic  | OK           | OK           | *not tested* | *not tested* |\n| Matomo (Piwik)   | *not tested* | *not tested* | *not tested* | *not tested* |\n\n**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.\n\n# Setup\n\n## Google Analytics\n\nYou need to create a new website to track and get its tracker ID.\n\nsee [Example here](test/net/mgsx/analytics/GoogleAnalyticsTrackerTest.java)\n\n## Matomo (piwik)\n\nsee [Example here](test/net/mgsx/analytics/MatomoTrackerTest.java)\n\n### Test with a local instance (docker)\n\nrun docker compose :\n\n\t$ cd docker/matomo\n\t$ docker-compose up web\n\nInstall : go to http://localhost:9000\n\nSetup DB\n\n* db address : db\n* login: root\n* pwd : root\n* db name : piwik\n\nSetup User\n\n* login : matomo\n* pwd : matomo\n* email : your email\n\nSetup website\n\n* name : localhost\n* geo : anything\n\nThen run integration test to send an event :\n\n* idsite must be your created site id (1 for the first one)\n\nyou can see the result [http://localhost:9000/index.php?module=CoreHome\u0026action=index\u0026date=today\u0026period=day\u0026idSite=1#?idSite=1\u0026period=day\u0026date=today\u0026category=General_Actions\u0026subcategory=Events_Events](here)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgsx-dev%2Fgdx-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgsx-dev%2Fgdx-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgsx-dev%2Fgdx-analytics/lists"}