Integration

Two lines of HTML. Nothing else.

One script for the whole site and one div per slot. No cookies, no consent work, zero layout shift. If Placa is ever unreachable, the slot stays empty and your page does not notice.

1 · Add the script once

Before the closing body tag, on every page that shows sponsorships. Your site id (st_…) is in the Integration tab of the panel.

<script async src="https://edge.placa.dev/s.js" data-site="st_YOUR_SITE_ID"></script>

2 · Place one div per slot

Copy each div verbatim from the Integration tab. The inline min-height reserves the exact box of the format before anything paints — that is where the zero layout shift comes from.

<div data-placa="sidebar" style="min-height:200px"></div>

The rules that matter

  • Keep the inline min-height. Removing it introduces layout shift.
  • The data-placa value must match the slot key defined in the panel.
  • Do not place the div inside hidden containers: impressions only count after being visible for one second.
  • An empty slot is not an error. The script degrades in silence when a slot has nothing to show.
  • No cookie banner work on Placa’s account: the script sets no cookies and stores no identifiers.

Formats and their reserved boxes

Every format reserves a fixed box, so you know the exact space before selling anything.

FormatReserved box (px)Where it lives
card.sidebar260 × 200Next to the content or the docs index.
text.inlinefull width × 44Inside or right after the content.
bar.topfull width × 44The first strip of the page. One sponsor, exclusive.
logo.wallfull width × 76A row of sponsor chips: the open source classic. Many at once, never rotating.
card.gridfull width × 120A row of equal cards at the foot of an article or between sections.

Domain verification

Ownership is proven once with a DNS TXT record shown in the panel. Nothing is served until it checks out.

Working with a coding agent?

Point it at the machine-readable contract — the same guide, written for agents: placa.dev/llms.txt

That is the whole integration.Create your account