WebGL Getting Started
Integrating the IV Metrics SDK for Web is the first step towards recording user gameplay and tracking their progress in your mobile game.
Download the latest IV Metrics SDK
Prerequisites
The following prerequisites are needed to run IV Metrics:
Build-Time
- Requires use of HTML canvas to render your application.
Runtime
- Gameplay recording requires:
- Minimum 1.5 GB total device RAM
Configure Your App
- Download the latest ivmetrics-web.js library
- Drag the downloaded library into your project dependencies
Initialise the IV Metrics SDK
You must initialise the SDK as soon as you can within the app’s lifecycle, else you risk missing data that could be crucial to getting the full picture of each user’s experience within your game.
The following things are required to be passed through to the IVMetrics.Create(…); function, they MUST be NonNull:
- String developerKey
- You can find this Key on the IV Metrics panel.
- String projectKey
- You can also find this Key on the IV Metrics panel.
- boolean verboseLogging
- This should only be enabled for debugging purposes. You must set this to false when building for production
- String appVersion
- Pass through your app version (e.g. 1.28.1) to allow accurate collection for requests.
An example of how you could initialise the SDK:
const MyAppRoot = {
InitialiseMyApp: function()
{
const verboseLoggingEnabled = false;
const appVersion = "1.28.1";
window.IVMetrics.Create("DEV-KEY-XXXX", "PRJ-KEY-XXXX", verboseLoggingEnabled, appVersion);
},
}
Setup Complete
Your project is now set up to use IV Metrics when deploying to Android devices. You should begin to see devices appearing in requests on the panel when the project is ran on a device.
To begin receiving recordings from devices, go to the IV Metrics panel and create a new request.
Next Steps
Now the IV Metrics SDK is implemented, here’s some additional things you can do with the IV Metrics SDK:
Legacy Support Solutions
N/A