Skip to content

Analytics

Mat Hopwood edited this page Nov 8, 2018 · 4 revisions

IGX supports logging of user events via the Analytics Service.

Setting up Analytics Service

Before creating the analytics service you should set up any analytics specific options:

FBInstant.options.analyticsOptions.trackingId = "PUT YOUR GOOGLE ANALYTICS TRACKING ID HERE"; // Google Analytics example

The analytics service is created in the same way as other services, e.g:

new AnalyticsService("google");

Logging Events

An example showing how to log an event is shown below:

FBInstant.logEvent("Purchased 100 coins", 1);

Help keep this project alive by donating paypal

Clone this wiki locally