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
| Platform | Min version | Distribution |
|---|---|---|
| Web | Modern browsers | @trypillow/web or script tag |
| Android | API 24 (Android 7.0) | Maven Central |
| iOS | iOS 16.0 | Swift Package Manager |
@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.