@rbxts/gameanalytics-ab-service
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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

Take me to the NPM package →

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.

Package Sidebar

Install

npm i @rbxts/gameanalytics-ab-service

Weekly Downloads

33

Version

1.0.6

License

ISC

Unpacked Size

7.8 kB

Total Files

8

Last publish

Collaborators

  • urbanindigo