Free Embed

Embed the DPDPA Penalty Calculator

Free to embed on any website. No API key required. Drop one <iframe> tag.

1. Basic Embed

Paste this anywhere in your HTML. Works in blog posts, landing pages, Notion embeds, and email templates.

<iframe
  src="https://dpdpashield.in/calculator/embed"
  width="100%"
  height="580"
  frameborder="0"
  style="border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.1);"
></iframe>
Live Preview↕ 580px height

2. Pre-filled by Sector

Show your audience their sector-specific risk by pre-filling the calculator. Supported values for sector: fintech, edtech, healthcare, ecommerce, saas, general.

Fintech / BFSI audience

<iframe
  src="https://dpdpashield.in/calculator/embed?sector=fintech"
  width="100%"
  height="580"
  frameborder="0"
  style="border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.1);"
></iframe>

EdTech audience

<iframe
  src="https://dpdpashield.in/calculator/embed?sector=edtech"
  width="100%"
  height="580"
  frameborder="0"
  style="border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.1);"
></iframe>

3. JavaScript Callback

The embed sends window.postMessage events to the parent page. Listen for them to trigger your own analytics, CTAs, or UI changes.

window.addEventListener('message', function(event) {
  if (event.data.type === 'dpdpashield-calculator-loaded') {
    console.log('Calculator embed is ready');
  }

  if (event.data.type === 'dpdpashield-calculator-result') {
    console.log('Risk score:', event.data.score, 'crore');
    console.log('Risk level:', event.data.riskLevel);
    // Trigger your own CTA, analytics event, etc.
    // e.g. gtag('event', 'calculator_result', { score: event.data.score })
  }
});

Events Reference

dpdpashield-calculator-loadedFired once when the embed iframe finishes loading.
dpdpashield-calculator-resultFired after each calculation. Payload: score (number, crore) + riskLevel ("critical" | "high" | "medium").

4. Attribution

The embed includes a "Powered by DPDPA Shield" footer. This is required and cannot be removed — it's our only ask in exchange for a free embed.

Need a white-label version? Contact hello@dpdpashield.in

Want compliance automation — not just a calculator?

Use DPDPA Shield for Free →