Skip to main content
Important: Please ensure your CMP configuration includes new Vendor ID 1469 for 1st Party data tracking. Additionally, include Vendor ID 301 if cookie sync is enabled. Learn more

Setup in Zeotap CDP

Create an iOS source in your Zeotap CDP account. How to create an iOS source? Obtain the write key from the created source. How to obtain a write key?

Installation

Add the following line to your Podfile:
Then run:

Swift Package Manager

  1. Open your project in Xcode
  2. Go to FileAdd Package Dependencies
  3. Enter the repository URL: https://github.com/zeotap/ZeotapCollect
  4. Click Add Package
  5. Select the target where you want to add the SDK
SPM Add Package

Manual Installation

  1. Download the latest release from here and Unzip it.
  2. Launch the project settings by PROJECTTARGETGeneral → scroll and find Frameworks, Libraries and Embedded Content
  3. Add the ZeotapCollect.xcframework into your Xcode project
Add xcframework

Initialization

Import the SDK in your AppDelegate or main app file:
Initialize the SDK in your application(_:didFinishLaunchingWithOptions:) method:
You need to input your write key in place of YOUR_WRITE_KEY so that the data gets ingested to an iOS source created in your Zeotap CDP account.

Setting up User Identities (Learn more)

Once the Zeotap SDK is integrated, you can start setting up user identities. User identities are how you associate data to specific users. The Zeotap iOS SDK provides the setUserIdentities function to identify your users:

Setting User Properties (Learn more)

User properties allow you to store information about your users that doesn’t change frequently, such as subscription status, user preferences, or demographic information. To set user properties, use the setUserProperties method:

Tracking User Events (Learn more)

Event tracking allows you to track specific actions that users take in your app, such as making a purchase, completing a level, or sharing content. To track user events, you can use the setEventProperties method:

Example Integration

Here’s a complete example of how to integrate the Zeotap iOS SDK:
Last modified on June 25, 2026