Skip to main content
The Pillow SDK lets you run research studies inside your app or website. You can identify users, attach durable properties, and present hosted Pillow studies without sending people to a separate landing page.

What you can do

  • Present studies inside your app or website
  • Launch studies automatically to targeted user cohorts via audience targeting
  • Identify users with an external ID and custom properties
  • Manage sessions: reset on logout, handle the lifecycle

When to use the SDK

Reach for the SDK when you want studies to appear in context, inside your product, and to target users by who they are and what they’ve done. If you just need to send a study to people over email, chat, or social, a shareable link is simpler and needs no integration.

Supported platforms

PlatformMin versionDistribution
WebModern browsers@trypillow/web or script tag
AndroidAPI 24 (Android 7.0)Maven Central
iOSiOS 16.0Swift Package Manager
The browser SDK is published as @trypillow/web. Use npm in modern frontend apps, or load the UMD bundle from https://unpkg.com/@trypillow/web/dist/pillow-sdk.min.js for script-tag installs.

Core concepts

These ideas work the same across every platform. Learn them once, then use the platform pages for exact syntax.

Identification

External IDs and user properties.

Presenting studies

Manual present, launches, modes, and events.

Sessions

Reset on logout and offline behavior.

What’s next

Web

Install the browser SDK and present your first study on the web.

iOS

Install and present your first study on iOS.

Android

Install and present your first study on Android.