Skip to main content

Overview

The Permutive Android SDK enables user segmentation, personalization, and ad targeting in your Android application. Track user behavior, manage identities across devices, and deliver targeted advertising through integrations with major ad platforms. Current Version: 1.10.0 (Core) | 2.2.0 (Google Ads) | 1.7.0 (AppNexus)
What’s New in 1.10.0: Contextual Cohorts for real-time content-based targeting, plus Dagger dependency injection support.

Getting Started

New to the Permutive Android SDK? Start here.

Core Concepts

Understand the fundamental concepts of the Permutive SDK.

Features

Detailed guides for specific SDK features.

Integrations

Connect Permutive with ad platforms and other services.

Common Tasks

val emailHash = hashEmail(userEmail)
permutive.setIdentity(
    listOf(
        Alias.create("email_sha256", emailHash, priority = 0),
        Alias.create("internal_id", userId, priority = 1)
    )
)
val trigger = triggersProvider.triggerAction("premium_user") { isInCohort ->
    if (isInCohort) {
        showPremiumFeatures()
    }
}

// Don't forget to close!
override fun onDestroy() {
    super.onDestroy()
    trigger.close()
}
val adRequest = AdManagerAdRequest.Builder()
    .addPermutiveTargeting(permutive)
    .build()

adView.loadAd(adRequest)

Requirements

RequirementVersion
Android API21+ (Android 5.0 Lollipop)
Compile SDK34+
Java8+ (JVM target 1.8)
Kotlin1.6+ (if using Kotlin)
dependencies {
    // Core SDK (required)
    implementation("com.permutive.android:core:1.10.0")

    // Optional add-ons
    implementation("com.permutive.android:google-ads:2.2.0")
    implementation("com.permutive.android:appnexus:1.7.0")
}

Key Concepts

- **Cohorts**: All segments a user belongs to - **Activations**: Cohorts configured for specific ad platforms
- **Behavioral**: Based on user history (e.g., "sports enthusiast") - **Contextual**: Based on current content (e.g., viewing sports article right now)
Multiple identifiers (email, user ID, ad ID) linked to single user profile for cross-device tracking.

Additional Resources

Best practices, patterns, and how-tos.
Coming Soon: Architecture Patterns, Testing Strategies, GDPR Compliance, and Performance Optimization guides are being developed.

FAQ

PageTracker is the recommended approach for most use cases. It automatically tracks Pageview events, measures engagement time and scroll depth, and enables contextual cohorts when URLs are provided.EventTracker is for specialized cases where you need to track custom events that don’t fit the page model.
Enable developer mode in your code:
permutive.setDeveloperMode(true)
Or via ADB:
adb shell setprop log.tag.Permutive VERBOSE
adb logcat -s Permutive
Use hashed emails (SHA-256), internal user IDs, or mobile advertising IDs. Never send plain text PII. See the Identity Management guide for details.
Events typically appear within 5 minutes. If you see “Accepted: 1 / 1” in your debug logs, the event was successfully sent.

Getting Help

Privacy & Compliance

Permutive is designed with privacy in mind: GDPR compliant, CCPA compliant, no PII storage, user consent respected, and transparent data usage.