Skip to main content
This guide walks you through installing the SDK, initializing it, and tracking your first page view.

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

  1. In Xcode, go to File → Add Package Dependencies
  2. Enter the package URL:
  3. Select Permutive_iOS as the package product
  4. Click Add Package

Step 2: Initialize the SDK

Initialize Permutive early in your app lifecycle, typically in your AppDelegate or SceneDelegate.

Step 3: Track Your First Page View

Use PageTracker 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:
Run your app and check the Xcode console for:
The “Accepted: 1 / 1” message confirms your event was successfully sent to Permutive servers.

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