Segment-Kahuna Wrapper

Version License

Kahuna integration for analytics-ios.

Installation

To install the Segment-Kahuna integration, simply add this line to your CocoaPods Podfile:

pod "Segment-Kahuna"

Usage

After adding the dependency, you must register the integration. To do this, import the Kahuna integration in your AppDelegate:

#import <Segment-Kahuna/SEGKahunaIntegrationFactory.h>

And add the following lines:

NSString *const SEGMENT_WRITE_KEY = @" ... ";
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];

[config use:[SEGKahunaIntegrationFactory instance]];

[SEGAnalytics setupWithConfiguration:config];

Please see our documentation for more information.