Prerequisites
- Xcode 13.0 or later
- iOS 12.0+ or tvOS 12.0+ deployment target
- Your Permutive API Key, Organization ID, and Workspace ID (from your dashboard)
Step 1: Install the SDK
- Swift Package Manager
- CocoaPods
- In Xcode, go to File → Add Package Dependencies
- Enter the package URL:
- Select Permutive_iOS as the package product
- Click Add Package
Step 2: Initialize the SDK
Initialize Permutive early in your app lifecycle, typically in yourAppDelegate or SceneDelegate.
Step 3: Track Your First Page View
UsePageTracker to track page views. This is the recommended approach for most tracking scenarios.
Step 4: Verify the Integration
Enable debug logging to confirm events are being sent:Next Steps
Installation Details
CocoaPods and SPM configuration options
Initialization Options
Advanced SDK configuration
Page Tracking
Complete PageTracker guide
Identity Management
Track users across sessions