BuiltAnalyticsEvent Class Reference

Inherits from NSObject
Declared in BuiltAnalyticsEvent.h

Properties

  eventUID

UID of the event

@property (nonatomic, copy, readonly) NSString *eventUID

Discussion

//'blt5d4sample2633b' is a dummy Application API key

//Obj-C
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
BuiltAnalytics *analytics = [builtApplication analytics];
BuiltAnalyticsEvent *bugEvent = [analytics eventWithUID:@"create_bug"];
NSString *eventUID = [bugEvent eventUID];

//Swift
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
var analytics:BuiltAnalytics = builtApplication.analytics()
var bugEvent:BuiltAnalyticsEvent = analytics.eventWithUID("create_bug")
var eventUID:String = bugEvent.eventUID

Declared In

BuiltAnalyticsEvent.h

  properties

Properties will allow you to segment your events in your BuiltAnalytics reports.

Property keys must be NSString objects and values must be NSString, NSNumber, NSNull, NSArray, NSDictionary, NSDate or NSURL objects.

//'blt5d4sample2633b' is a dummy Application API key

//Obj-C
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
BuiltAnalytics *analytics = [builtApplication analytics];
BuiltAnalyticsEvent *bugEvent = [analytics eventWithUID:@"create_bug"];
NSDictionary *properties = [bugEvent properties];

//Swift
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
var analytics:BuiltAnalytics = builtApplication.analytics()
var bugEvent:BuiltAnalyticsEvent = analytics.eventWithUID("create_bug")
var properties:Dictionary = bugEvent.properties
@property (nonatomic, copy) NSDictionary *properties

Declared In

BuiltAnalyticsEvent.h

Track events

– trigger

use this method to trigger the event and add it to batch queue.

- (void)trigger

Discussion

The analytics will be saved to Built.io Backend regularly depending upon the batchsize.

//'blt5d4sample2633b' is a dummy Application API key

//Obj-C
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
BuiltAnalytics *analytics = [builtApplication analytics];
BuiltAnalyticsEvent *bugEvent = [analytics eventWithUID:@"create_bug"];
[bugEvent trigger];

//Swift
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
var analytics:BuiltAnalytics = builtApplication.analytics()
var bugEvent:BuiltAnalyticsEvent = analytics.eventWithUID("create_bug")
bugEvent.trigger()

Declared In

BuiltAnalyticsEvent.h

– triggerImmediately

Use this method to trigger the event immediatley instead if adding in batch queue.

- (void)triggerImmediately

Discussion

//'blt5d4sample2633b' is a dummy Application API key

//Obj-C
BuiltApplication *builtApplication = [Built applicationWithAPIKey:@"blt5d4sample2633b"];
BuiltAnalytics *analytics = [builtApplication analytics];
BuiltAnalyticsEvent *bugEvent = [analytics eventWithUID:@"create_bug"];
[bugEvent triggerImmediately];

//Swift
var builtApplication:BuiltApplication = Built.applicationWithAPIKey("blt5d4sample2633b")
var analytics:BuiltAnalytics = builtApplication.analytics()
var bugEvent:BuiltAnalyticsEvent = analytics.eventWithUID("create_bug")
bugEvent.triggerImmediately()

Declared In

BuiltAnalyticsEvent.h