Webhook & SDK Configuration
Integrate the Quantarra CMP into your web, mobile, and server-side applications.
Web SDK
7.2 KB gzipped · Under 8 KB limit ✓html
<script src="https://cdn.quantarra.io/cmp/v1/sdk.min.js" data-api-key="qcmp_live_••••4a8f" data-tenant="t-001" data-region="ap-south-1" defer ></script>
Usage
js
// Check consent before firing any tag
consentState.isPermitted('marketing') // boolean, <5ms from cache
// React to changes in real time
consentState.on('change', (purposeId, decision) => {
if (purposeId === 'marketing' && decision === 'denied') {
disableMarketingScripts();
}
});Framework integrations
ReactNext.jsVueAngularFlutterReact Native
Mobile SDK
iOS180 KB binary · Under 200 KB ✓
ruby
pod 'QuantarraCMP', '~> 1.0'
Android
groovy
implementation 'io.quantarra:cmp-sdk:1.0.0'
Flutter
yaml
dependencies: quantarra_cmp: ^1.0.0
Server-side rendering: Use the REST API: GET /v1/consent-state?principalId={id}&purposeId={id} — P99 latency <20 ms from India region (AWS ap-south-1).