DPDP Star DPDP Star Docs

Console Onboarding Wizard (`/api/v1/admin/onboarding`) • Embed & Bridge Mode

Website Embed, WordPress, Shopify & Bridge Mode Guide

Four-step onboarding workflow for custom HTML/Next.js/React websites, WordPress/WooCommerce sites, and Shopify stores—including Cookie-Banner Bridge Mode for sites already running OneTrust, Cookiebot, CookieYes, Complianz, Osano, Didomi, Usercentrics, IAB TCF v2.2, or Google Consent Mode v2.

Step 1 of 4

Detect Platform & Existing Cookie Tool _func: "detect_platform"

In the DPDP Star Console (Onboarding), enter your website URL. The scanner fetches up to 3 pages over HTTPS (pinned to public IPs) and fingerprints the platform (WordPress, WooCommerce, Shopify, Wix, Webflow, Next.js, React SPA, plain HTML) plus any existing consent/cookie tool.

Step 1: WordPress detected with no existing cookie tool
1A. WordPress Detected (Standard Banner Mode) When no existing cookie tool is present, DPDP Star preselects Standard DPDP Banner Mode.
Step 1: Shopify + Cookiebot detected, preselecting Bridge Mode
1B. Shopify + Cookiebot Detected (Bridge Mode) When an existing cookie banner (e.g. Cookiebot) is detected, DPDP Star automatically preselects Bridge Mode so you never show two stacked banners.
Step 2 of 4

Generate Publishable Site Key (pk_...) & Copy Platform Snippet _func: "save_site_setup"

Generates one publishable site key (pk_ + 32 hex) bound to your organisation and host, validates WCAG AA contrast on your chosen banner colours, and provides copy-ready installation instructions tailored to your platform.

<!-- Standard DPDP Star Rule 3 Banner Mode -->
<script src="https://app.dpdpa.support/embed/dpdp-star.js"
        data-site-key="pk_0123456789abcdef0123456789abcdef"></script>

<!-- Cookie-Banner Bridge Mode (keeps your existing cookie tool + adds DPDP Section 5 notice pill) -->
<script src="https://app.dpdpa.support/embed/dpdp-star.js"
        data-site-key="pk_0123456789abcdef0123456789abcdef"
        data-mode="bridge"></script>
Step 2: WordPress embed snippet and site setup
2A. Standard Banner Snippet for WordPress Copy-ready script tag and platform-specific placement steps for WordPress header injection.
Step 2: Bridge mode snippet for Shopify theme.liquid
2B. Bridge Mode Snippet for Shopify (`theme.liquid`) Includes data-mode="bridge" so Consent Mode defaults remain with your existing cookie banner while DPDP Star records signed consent artifacts.
Step 2B • DPO Role

Map Cookie Categories to DPDP Notice Purposes _func: "set_bridge_mapping"

In Bridge Mode, mapping a third-party cookie category (such as statistics or marketing) to an itemised DPDP Act purpose is a statutory compliance decision reserved for the organisation's DPO.

Step 2B: DPO Bridge Category Mapping in Console
2B. DPO Category-to-Purpose Mapping A purpose counts as granted only when every cookie category mapped to it is accepted by the visitor.
Admin view showing DPO role separation on Bridge mapping
Role Separation (`ADMIN` vs `DPO`) Enforced by AccessPolicy: Admin configures the host and script; DPO signs off on purpose mapping and RoPA.
Step 3 of 4

Verify Domain Ownership _func: "verify_site_domain"

Prove domain ownership using any of three methods: DNS TXT record (_dpdpstar-verify.<host>), HTML meta tag (<meta name="dpdp-star-verification" content="TOKEN">), or https://<host>/.well-known/dpdp-star-verification.txt.

Step 3: Domain verified via meta tag
3. Domain Verified & Bound to Site Key Origin Once verified, /embed/v1/config and /embed/v1/consent accept HTTPS requests from that exact origin.
Step 4 of 4

Go-Live Check & Storefront Rendering _func: "check_go_live"

The scanner verifies that dpdp-star.js with your data-site-key is present on the live home page and that at least one consent event has arrived from that origin.

Step 4: Website onboarded and verified live
4A. Status: Onboarded Confirms both live script presence and active consent telemetry from your verified domain.
Live DPDP Star Rule 3 Banner on WordPress Storefront
4B. Standard Rule 3 Consent Notice on Storefront Itemised personal data fields per purpose, equal-weight Accept / Reject buttons, and language switcher.
Live Bridge Mode DPDP Notice Layer on Shopify Storefront
4C. Bridge Mode "Your data rights / DPDP notice" Layer Adds the statutory Section 5 itemised notice and grievance/Board route alongside your existing cookie tool.

Supported Cookie-Banner Bridge Mode Adapters

Built into /embed/dpdp-star.js and verified by ConsentMechanism allowlist on POST /embed/v1/consent.

Tool (`cookie_tool`)Recorded MechanismBrowser Events MonitoredDefault Categories Offered for DPO Mapping
OneTrust (onetrust) BRIDGE_ONETRUST OneTrustGroupsUpdated, OneTrust.OnConsentChanged, OptanonWrapper C0002, C0003, C0004, C0005
Cookiebot (cookiebot) BRIDGE_COOKIEBOT CookiebotOnConsentReady, CookiebotOnAccept, CookiebotOnDecline preferences, statistics, marketing
CookieYes (cookieyes) BRIDGE_COOKIEYES cookieyes_consent_update, getCkyConsent() functional, analytics, performance, advertisement, other
Complianz (complianz) BRIDGE_COMPLIANZ cmplz_status_change, cmplz_enable_category, cmplz_revoke preferences, statistics, marketing
Osano (osano) BRIDGE_OSANO osano-cm-consent-saved, osano-cm-consent-changed ANALYTICS, MARKETING, PERSONALIZATION, STORAGE
Didomi (didomi) BRIDGE_DIDOMI window.didomiEventListeners (consent.changed) Tenant-defined Didomi purpose IDs
Usercentrics (usercentrics) BRIDGE_USERCENTRICS UC_CONSENT window event (ALL_ACCEPTED state) Tenant-defined Usercentrics category keys
IAB TCF v2.2 (tcf) BRIDGE_TCF __tcfapi('addEventListener', 2, cb) on useractioncomplete TCF purposes 1 through 11
Google Consent Mode v2 (gcm) BRIDGE_GCM dataLayer gtag('consent', 'update', {...}) analytics_storage, ad_storage, ad_user_data, ad_personalization