Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/gameanalytics-ab-service) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.