CDPGuidesSupport
SDKsClient

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. Passing null to a top-level visitor property clears the existing value on the visitor. This is a common mistake when code like urlParams.get('gclid') returns null and overwrites an attribution value captured earlier.

Available SDKs

SDKInstallDocs
Web SDK (script tag)<script> snippetWeb SDK
Web SDK (npm)npm install @oursprivacy/cdp-sdkWeb SDK
AndroidGradle dependencyAndroid SDK
iOSSwift Package ManageriOS SDK
React Nativenpm install @oursprivacy/react-nativeReact Native SDK
Flutterflutter pub add ours_privacyFlutter SDK

Tag Manager Installation

You can also install the Web SDK through a tag manager:

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?

On this page