CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

iKalaTracker 0.0.1

iKalaTracker 0.0.1

Maintained by ray.dai.



  • By
  • iKala

iKalaTracker

Getting Started

This section shows how to start using iKala BDL iOS SDK. Before reading this section, make sure you have read this Getting Started Document first to have the basic understanding about iKala BDL tracking SDK.

Add iKala BDL Tracking SDK to Your App

This section shows you how to add iKala BDL tracking SDK to your app.

iKalaTracker is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'iKalaTracker'

For AppDelegate import this SDK:

import iKalaTracker

and method didFinishLaunchingWithOptions add this Code:

Tracker.shared.configure()

When you set Tracker.shared.configure() in AppDelegate, it will trigger the page to automatically detect the submission mechanism.

Set ikaid

After adding iKala BDL tracking SDK, you should set ikaid in your project. See this page for more information about ikaid and how to get your ikaid.

The following section shows how to set ikaid in your project:

Set ikaid in the Info.plist with key ikaid

<key>ikaid</key>
<string>Your ikala id</string>

Auto Tracking Configuration

By default, iKala BDL tracking SDK tracks where Activity the end users are automatically. You can disable isAutoLogActivityPageEnabled if you want to do it by yourself:

Tracker.shared.isAutoLogActivityPageEnabled = false

Start Using iKala BDL Tracking SDK

Instance

Tracker entity can be obtained using Tracker.shared

try! Tracker.shared.addEvent(name: .searchWord, params:[:])

or

let tracker: Tracker = Tracker.shared
try! tracker.addEvent(name: .searchWord, params:[:])