Analytics

Setting User IDs

1
2
// C#
Appboy.SharedInstance().ChangeUser("YOUR_USER_ID");

See the iOS integration instructions for an in-depth discussion of when and how to set and change a user ID.

Tracking Custom Events

1
2
// C#
Appboy.SharedInstance ().LogCustomEvent ("YOUR_EVENT_NAME");

Implementation Example - logCustomEvent is utilized within the AppboySampleViewController.cs within the TestApp.XamariniOS sample application.

See the iOS integration instructions for an in-depth discussion of event tracking best practices and interfaces.

Logging Purchases

1
2
// C#
Appboy.SharedInstance ().LogPurchase ("myProduct", "USD", new NSDecimalNumber("10"));

Implementation Example - You can see user properties being set in the sample application’s EventsAndPurchasesButtonHandler method inside AppboySampleViewController.cs.

See the iOS integration instructions for an in-depth discussion of revenue tracking best practices and interfaces.

Setting Custom Attributes

1
2
// C#
Appboy.SharedInstance ().User.FirstName = "YOUR_NAME";

Implementation Example - You can see user properties being set in the sample application’s UserPropertyButtonHandler method inside AppboySampleViewController.cs.

See the iOS integration instructions for an in-depth discussion of attribute tracking best practices and interfaces.

Location Tracking

See Xamarin Walkthrough - Using Background Location and the iOS integration instructions for information on how to support location tracking.

WAS THIS PAGE HELPFUL?
New Stuff!