Client SDKs
Browser and mobile SDKs for tracking events and user identity, with automatic page views and click IDs on the web and app lifecycle events in mobile apps.
Client SDKs run in the browser or in your mobile app. The Web SDK captures page views, click IDs such as gclid and fbclid, and referrers automatically. The mobile SDKs collect app opens, sessions, and screens, and read campaign values from the links that open your app.
Every client SDK has methods to track events and identify users, and handles batching, retries, and default properties for you.
Before you wire up
identify: read Data Types and Field Values. Passingnullto a top-level visitor property clears the existing value on the visitor. This is a common mistake when code likeurlParams.get('gclid')returnsnulland overwrites an attribution value captured earlier.
Available SDKs
| SDK | Install | Docs |
|---|---|---|
| Web SDK (script tag) | <script> snippet | Web SDK |
| Web SDK (npm) | npm install @oursprivacy/cdp-sdk | Web SDK |
| Android | Gradle dependency | Android SDK |
| iOS | Swift Package Manager | iOS SDK |
| React Native | npm install @oursprivacy/react-native | React Native SDK |
| Flutter | flutter pub add ours_privacy | Flutter SDK |
Tag Manager Installation
You can also install the Web SDK through a tag manager:
- Ours Privacy Tag Manager (recommended)
- Google Tag Manager
- Other tag managers (Adobe, Piwik)
Looking for Server-Side Tracking?
If you need to send events from your backend, see the Ingest SDKs. For managing your account configuration programmatically, see the Platform SDKs.
How is this guide?

