1.0.6 • Published 10 months ago
@rbxts/gameanalytics-ab-service v1.0.6
Game Analytics AB Service
This library is an A/B testing wrapper over the existing Game Analytics library, providing typing support and default values.
Quick Start
To get started with the Game Analytics AB Service, you must initialise GameAnalytics the usual way, and then construct a new GameAnalyticsABService.
import { GameAnalytics } from "@rbxts/gameanalytics";
GameAnalytics.initialize({
gameKey: "GAME-KEY",
secretKey: "SECRET-KEY",
build: "1.0.0",
});
new GameAnalyticsABService<"music" | "ad-location">(
GameAnalytics,
{
music: "Bossa Me (a)",
"ad-location": "top-left",
},
(player, values) => {
// do something with the loaded values
},
);📦 Installation
npm install @rbxts/gameanalytics
npm install @rbxts/gameanalytics-ab-service🪪 License
gameanalytics-ab-service is available under the MIT license. See the LICENSE.md file for more info.