Before you start
Have these four things ready. Every step below assumes them.Pick your edge path
The integration lives at your edge, never in a browser. Two paths, decided by your CDN:
Both are written out, with their caveats, in Edge integration. Read that page when you
get to step 3; this page keeps to the happy path.
1
Register your site
In the console, open Sites & fragments and add your bare domain,
host only. Protocol and path are stripped, so
https://sillage-mag.fr/news becomes
sillage-mag.fr. See Sites.2
Define a fragment
Create a fragment on that site: a name, a language, and, if you already know them, the key-values you
want to accept. Copy the
fragment_id it gets, in the form frg_…. That id goes in the endpoint URL.
See Fragments.Leave the matching policy at its default for now. Tightening it is a targeting decision,
not an integration one, and a strict policy makes step 5 harder to read.3
Add the edge adapter
Take the snippet for your path from Edge integration and replace four values:
your account id, your
fragment_id, the language, and your API key.The key must stay server-side, rendered in an ESI tag or held in an edge worker. Never put it in
client-side JavaScript or in a URL a visitor can read.4
Gate the call on the agent User-Agent
Only AI-agent requests may reach the fragment endpoint. Humans must never trigger it. The agent list
and the exact gate for your CDN are in Edge integration; the canonical markers are
in the reference.
5
Verify both request paths
Against your live test page, run the human path and the agent path:Read the two numbers together:
Verify both paths
6
Disambiguate a double zero
Call the endpoint directly, without your edge in the way:
Ask the endpoint itself
You are live when
- your site is registered and your fragment is active;
- the human path returns no card, on every page;
- the agent path returns a card on a page that has an eligible one;
- a direct call to the endpoint answers or , never a
4xx.
Common symptoms
Then
Decide what you accept
Key-values and
match_mode: how tightly you want serving constrained.Read the endpoint contract
Every parameter, every response code, the cache headers and the agent markers.
