Dogfooding the gesture

How to read this page. The two grey boxes below are publisher-declared containers (data-tgj-slot), standing in for this page's own ads. With an adblocker active they are hidden and the SDK classifies the page vacant; with none they stay filled and it classifies occupied. Either way the same small invitation appears once, at the end of the article, and never inside those boxes. What the classification changes is what a click may show: an occupied page is only ever offered a declared sponsor card or a tip link, never anything pointed at the ads already there.

The invitation does not appear immediately. It waits for the engagement gate: 60% scroll or 30 seconds dwell in production, lowered for this site so dogfooding does not require patience. Scroll down.

Why the ask comes late

Gratitude timing is the whole differentiation. An anti-adblock wall asks before delivering anything; this asks after. If the reader has not got value out of the page yet, there is nothing to be grateful for and the ask reads as the same nag with better manners.

One invitation per pageview. Dismissal is respected for the session with no escalation, ever. Ignoring it costs the reader nothing and we do not ask again this visit.

What the click is

Two things at once. It is a first-party, fully-viewable impression from a reader who was worth exactly zero a moment earlier. And it is the strongest per-page quality signal available on the open web, because it cost someone a deliberate action.

Roughly one pageview in twenty renders no invitation at all. That is the holdout, and it is here from the first commit — it is the only way to say what the invitation actually caused rather than what merely happened near it. On those pageviews the SDK still waits for the gate and records that the invitation was withheld, so both groups are counted at the same moment.

What never happens

No third-party JavaScript executes after a click: creatives arrive as data and render into a sandboxed iframe with scripting off. No cookie, no fingerprint, no identity of any kind. The only targeting input that exists is which page you are on.

Checking it worked

Open devtools. Every request the SDK makes — config, creative, events — is a path on this origin. That is the point of the path proxy: an adblocker blocks the request, so anything fetched from an ad domain would be dead on arrival for the only audience this product has.

Events land in Analytics Engine; offers, withheld offers, thanks and fulfillments also land in D1 via the queue. Locally, wrangler d1 execute tgj --local --command "select event_type, page, posture from billable_events order by ts desc" should show an offered row seconds after the invitation appears, and more after you click.

— end of article —