Skip to main content
Get up and running with the Permutive Android SDK. This guide will help you install the SDK, initialize it, and track your first page view.
Prerequisites:
  • Minimum Android API level 21 (Android 5.0)
  • Your Permutive Workspace ID and API Key (available from your Permutive dashboard)
  • Your project enabled for Android by Permutive (contact your Customer Success Manager if unsure)
1

Add the Dependency

Add the Permutive SDK to your app’s build.gradle.kts or build.gradle file:
Sync your project with Gradle files.
2

Initialize the SDK

Initialize Permutive in your Application class. The Permutive object should be created once as a singleton.
Create only one instance of the Permutive object. Creating multiple instances will result in undefined behavior.
3

Track Your First Page View

Track a page view from an Activity using PageTracker. PageTracker is the recommended approach as it integrates with Permutive’s standard events and enables richer insights.
Why PageTracker? PageTracker automatically tracks Pageview events with proper structure, measures engagement time and scroll depth, integrates seamlessly with Permutive’s insights platform, enables contextual cohorts when URLs are provided, and associates related events with the page context.
4

Verify Your Integration

Enable debug logging to verify events are being tracked:
What to look for in logs:
If you see “Accepted: 1 / 1” and the Pageview event, your integration is working!

Next Steps

Page Tracking Guide

Learn how to track user engagement with content

Identity Management

Connect user behavior across sessions and devices

Google Ad Manager

Integrate with GAM for personalized advertising

Xandr/AppNexus

Integrate with Xandr ad platform

Video Tracking

For video streaming or CTV applications

Verification Guide

Comprehensive verification and troubleshooting

Troubleshooting

Cause: Invalid credentials or Android not enabled for your workspace.Solution:
  1. Verify your Workspace ID and API Key are correct
  2. Ensure you’re using workspaceId (not the deprecated projectId)
  3. Contact your Customer Success Manager to verify Android is enabled
Cause: Event schema doesn’t match what’s configured in your Permutive dashboard.Solution:
  1. Ensure the event name matches exactly (case-sensitive)
  2. Verify property names and types match your schema
  3. Check logs for detailed validation errors
Cause: Debug logging not enabled.Solution: Enable developer mode or use ADB commands shown in Step 4.

More Troubleshooting

See the complete troubleshooting guide for solutions to more issues