Have a question?

iOS SDK

Track customers on your iPhone and iPad native applications using Woopra’s iOS SDK

Download the SDK

Download iOS SDK from GitHub

iOS SDK Documentation

When the app loads, you should load the Woopra Tracker and configure it.

[WTracker sharedInstance].domain = @"mybusiness.com";

You can update your idle timeout (default: 30 seconds) by updating the timeout property in your WTracker instance:

// Ping is disabled by default
[WTracker sharedInstance].pingEnabled = true;

To add custom visitor properties, you should edit the visitor object.

[[WTracker sharedInstance].visitor addProperty:@"name" value:@"John Smith"]
[[WTracker sharedInstance].visitor addProperty:@"email" value:@"john@smith.com"]

Your custom visitor data will not be pushed until you send your first custom event. On website, the default event is a pageview. In mobile apps, we recommend that developers use the event appview when switching between Windows and Views.

To add send an appview event:

// create event "appview"
WEvent* event = [WEvent eventWithName:@"appview"];
// add property "view" with value "login-view"
[event addProperty:@"view": value:@"login-view"];
// track event
[[WTracker sharedInstance] trackEvent:event];

Need any help? Contact our Data Jedis