Create an iOS Source
In the Zeotap CDP, create a Source of category App Events with data source iOS Native SDK. From the IMPLEMENTATION DETAILS tab, copy your
write_key.Full walkthrough: Create an iOS SDK Source.Add the SDK
Choose the integration method that fits your project.
- Swift Package Manager
- CocoaPods
- Manual
- In Xcode, go to File → Add Packages.
- Enter
https://github.com/zeotap/ZeotapCollectin the search bar. - Choose Exact Version as the Dependency Rule and select the latest version.
- Click Add Package.
ZeotapCollectappears under Package Dependencies. - Under Product → Clean Build Folder, then Build.
Initialize the SDK in AppDelegate
Import Replace
ZeotapCollect and initialize inside didFinishLaunchingWithOptions:YOUR_WRITE_KEY with the value from the Source.Next steps
Configure CollectOption
Consent flags, batching, hashing, country, and more.
Capture user identities
Stitch events to profiles using email, phone, login ID, or custom identifiers.
Set up consent
Default opt-in, TCF 2.0, or custom consent.
iOS 14+ ATT
Capture the IDFA via the App Tracking Transparency framework.