-
Notifications
You must be signed in to change notification settings - Fork 9
Analytics
Mat Hopwood edited this page Nov 8, 2018
·
4 revisions
IGX supports logging of user events via the 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");
An example showing how to log an event is shown below:
FBInstant.logEvent("Purchased 100 coins", 1);
