Developers
The one-snippet embed
Add a themeable, multilingual cookie + consent banner to any site. It blocks non-essential scripts until consent and records each choice to your consent ledger.
1. Drop the tagscript tag
<script src="https://cdn.noidme.com/dpdp-embed.js" data-api="https://api.noidme.com" data-key="pk_live_yourPublishableKey" data-notice="n1" data-theme="indigo" data-mode="auto" defer></script>
Uses a publishable (pk_) key, browser-safe.
2. Or configure in JSjs api
Programmatic init
DPDP.init({
apiBase: "https://api.noidme.com",
publicKey: "pk_live_…",
noticeId: "n1",
theme: "indigo", mode: "auto",
onChange: (consent) => console.log("consent changed", consent),
});
// later:
DPDP.showPreferences(); // re-open the preference center
DPDP.getConsent(); // current state
3. Gate your tagsgated tag
Mark non-essential scripts so the embed only runs them after consent for the matching purpose:
<script type="text/plain" data-dpdp-purpose="analytics" src="https://example-analytics.js"></script>
Ship consent in an afternoon
Drop the embed, gate your tags, and you're recording verifiable §6(10) consent.