Skip to main content

Prerequisites

Before you begin, you’ll need:
  • An EngageFabric account (sign up here)
  • A project created in the admin console
  • Your API key (found in Project Settings > API Keys)

Step 1: Install the SDK

The EngageFabric SDK is currently available for enterprise customers and early access partners. Contact us at support@engagefabric.com to get access.
Install the JavaScript SDK via your preferred package manager. Python, Ruby, PHP, and cURL use the REST API directly — no SDK needed.

Step 2: Initialize the Client

Never expose your API key in client-side code for production applications. Use a backend proxy or serverless functions to make API calls.

Step 3: Identify a Player

When a user logs into your application, identify them with EngageFabric:

Step 4: Track Events

Track user actions to trigger gamification rules:
Events are processed asynchronously and can trigger rules that award XP, progress quests, update leaderboards, and more.

Step 5: Display Player Progress

Fetch and display the player’s current state:

Next Steps

Player Management

Learn how to manage player profiles, XP, and currencies

Event Tracking

Deep dive into event tracking and rule triggers

Quest Design

Create engaging quests and adventures

Leaderboards

Set up competitive leaderboards

Example: Complete Integration

Here’s a complete example integrating EngageFabric into a React application:
Congratulations! You’ve successfully integrated EngageFabric into your application.