1.1.0 • Published 10 months ago

not-game-analytics v1.1.0

Weekly downloads
7
License
ISC
Repository
-
Last release
10 months ago

Not Game Analytics

An unofficial wrapper library for GameAnalytics. If you are searching for the official library, you'll want to check out their npm module.

To get started:

const GameAnalytics = require("not-game-analytics")

GameAnalytics.BUILD_VERSION = "vX.Y.Z"
GameAnalytics.GAME_KEY = "XXXXXXXXXXXXX"
GameAnalytics.SECRET_KEY = "XXXXXXXXXXXXX"

To use:

GameAnalytics.reportStageStart("Stage1")
GameAnalytics.reportStageSuccess("Stage1")
GameAnalytics.reportStageFailure("Stage1")
GameAnalytics.reportDesignEvent("FireLord:Death")
GameAnalytics.reportError(new Error("Something went wrong"))

To optionally configure:

GameAnalytics.isLogging = true // set to true to show the logs.
GameAnalytics.isReporting = false // set to false to not send reports.
1.1.0

10 months ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago