Skip to content

Embed script

The Sill embed script is one <script> tag you add to your pages. On each page load it sends Sill one small report of the visit (which browser or agent it was, and which page), and adds links in your page’s <head> that point agents to your signed agent card, MCP server and catalog. It never breaks your page or slows it down: if anything fails, it behaves as if Sill were not installed.

Paste the snippet before </body> on every page, usually in your site-wide layout. Copy your own values from Settings → Install → Endpoint → Install snippet.

<!-- Sill -->
<script data-site-key="us_…" data-proof-token="pf_…">
!function(){if(window.__sill_ldr)return;window.__sill_ldr=1;var c=document.currentScript;function g(){var s=document.createElement("script"),d=c&&c.dataset||{};s.async=1;s.src="https://cdn.sill.so/embed.js";if(d.siteKey)s.dataset.siteKey=d.siteKey;if(d.proofToken)s.dataset.proofToken=d.proofToken;if(d.sillConsent)s.dataset.sillConsent=d.sillConsent;(document.head||document.documentElement).appendChild(s)}document.readyState==="complete"?setTimeout(g,0):addEventListener("load",g,{once:true})}();
</script>

Install snippet row in Settings with the script tag, the site key, the proof token and a Copy button Copy the snippet with your site’s own key and proof token.

  • data-site-key tells Sill which site the visit belongs to. It is public by design, like a Stripe publishable key: anyone can see it in your HTML, and it grants no access to your account. During onboarding it is shown as a key that starts with your region (us_…); later, Settings → Install shows a 43-character form of the same key. Either one works.
  • data-proof-token lets Sill confirm you control the domain: Sill fetches your homepage and looks for it. The script itself never reads or sends it. It is also safe to publish.
  • The snippet is a tiny inline loader. It does not fetch embed.js until after your page’s load event, so Sill never delays your Core Web Vitals or anything else that waits on load.

If your Content Security Policy forbids inline scripts (no 'unsafe-inline' on script-src), use the classic bare-src form instead:

<script async src="https://cdn.sill.so/embed.js" data-site-key="us_…" data-proof-token="pf_…"></script>

Both forms verify, and Sill recognises existing installations in either shape.

Settings → Install → How Sill is installed shows when the first report from the script has reached Sill. Reports are recorded once your domain is verified. If you use Cloudflare or WordPress, see What each install covers: a Cloudflare Worker or the WordPress plugin adds this script for you.

One JSON request per page load to https://edge.sill.so/v1/discovery/ingest, using navigator.sendBeacon (or fetch with keepalive and no credentials). It does not retry and does not read the response.

{
"site_key": "us_…",
"schema_version": "1",
"observed_at": "2026-10-01T15:00:00.000Z",
"identification": {
"user_agent": "Mozilla/5.0 …",
"client_hints": {
"sec_ch_ua": "\"Chromium\";v=\"128\", \"Not;A=Brand\";v=\"24\"",
"sec_ch_ua_mobile": "?0",
"sec_ch_ua_platform": "\"macOS\""
},
"referrer_origin": "https://northwind-coffee.example"
},
"page_context": {
"page_path": "/products/ethiopia-guji",
"page_query": "?q=decaf"
}
}
FieldSource
identification.user_agentnavigator.userAgent, cut to 512 characters.
identification.client_hintsBrowser brand, mobile flag and platform from navigator.userAgentData (Chromium browsers only).
identification.client_hints.sec_ch_ua_sill_agentA <meta name="sec-ch-ua-sill-agent"> tag, if the page has one.
identification.agent_card_claimA <meta name="sill-agent-card"> tag, if the page has one, passed as-is.
identification.referrer_originYour page’s own origin (location.origin).
page_context.page_path, page_context.page_queryThe page path and query string, each cut to 1,000 characters. They power the top-pages and search-term views.
visitor.vid, visitor.sidA random visitor ID and session ID the script keeps in the browser (see Returning visitors).

Fields are left out when there is nothing to send.

The script does not read form fields or page content, document.referrer, screen size, installed plugins or languages, or any cookie or stored value other than its own two IDs, and it does not use canvas, WebGL or audio to identify devices.

Returning-visitor tracking lets you see the same person come back, last month and again today. It is on by default. Owners and admins can turn it off for a site in Settings → General → Returning visitors. How to use it in the dashboard is in Returning visitors. While it is off, the script stores nothing in your visitors’ browsers and removes anything it stored before.

When it is on, the script keeps two random IDs on your domain:

NameWhereKept forWhat it is
sill_vidLocal storage13 monthsA random visitor ID. It contains nothing about the person.
sill_sidLocal storage30 minutes without a page viewA random session ID. A new one starts after 30 idle minutes.

Both stay on your own domain, are never shared with other sites, and are only sent to Sill with the visit report. When a browser keeps no local storage, Sill sends no ID at all and recognises a returning visitor by their network and browser instead — Sill deliberately does not set a cookie, so your pages stay fully cacheable at the edge.

For people (not AI agents), Sill also records the IP address the visit came from. Sill stores it encrypted and shows it only in a visitor’s detail view, to account owners, admins and reviewers. Each time an address is shown, it is recorded in your account’s activity log. Visitor history, including IP addresses, is kept for 13 months after a visitor’s last visit. Forget this visitor deletes one visitor’s history at any time; if the same browser comes back, a new history starts.

  • Browsers that send Global Privacy Control are never given an ID.
  • To wait for your cookie banner, add data-sill-consent="required" to the script tag, and set window.sillConsent = true once the visitor agrees. IDs are kept from the next page view on.
  • To turn IDs off on a page, set window.sillConsent = false or add data-sill-consent="denied".

Add data-sill-consent="required" to the inline loader <script> tag (the one you pasted), then let your banner set window.sillConsent = true on accept:

<script>
// in your consent banner's "accept" handler
window.sillConsent = true;
</script>

If your site shows a cookie notice, list sill_vid and sill_sid in it as analytics local storage. Sill does not set any cookies.

Before sending the report, the script adds these tags to <head>, unless your page already has them:

<link rel="agent-card" type="application/json" href="https://edge.sill.so/v1/agent-card/SITE_KEY.json">
<link rel="mcp" type="application/json" href="https://edge.sill.so/v1/mcp/SITE_KEY">
<link rel="alternate" type="application/agent-card+json" href="https://your-domain/.well-known/agent-card.json">
<link rel="ai-catalog" type="application/json" href="https://edge.sill.so/v1/catalog/SITE_KEY.json">

Agents that read the page with JavaScript find your agent endpoints this way. For agents that do not run JavaScript, paste the HTML LINK TAG from Settings → Install → Endpoint → Agent card into your <head> directly.

If your site sends a CSP, allow Sill’s two hosts:

Content-Security-Policy:
script-src 'self' https://cdn.sill.so;
connect-src 'self' https://edge.sill.so;

The default snippet is an inline loader, so with this policy the browser also needs permission to run it: add a nonce to the snippet’s <script> tag, add a hash of the inline script to script-src, or allow 'unsafe-inline'. If you would rather not, use the strict-CSP alternative: the classic src tag runs under the policy above with nothing else added. embed.js itself uses no eval, so 'unsafe-eval' is never needed.

Terminal window
curl -I https://cdn.sill.so/embed.js

Then load a page with the snippet and open Settings → Install → How Sill is installed. If nothing arrives, open your browser console: a malformed data-site-key logs [sill] embed: aborting (invalid site_key). That is the only message the script ever logs.

The script is cached for five minutes, so a fresh copy reaches your visitors shortly after Sill updates it. Always load it from cdn.sill.so; a self-hosted copy would fall out of date.

Most AI traffic, including GPTBot, ClaudeBot, Perplexity and Googlebot, fetches pages without running JavaScript, so the script never sees it. A script-tag-only install also does not serve /.well-known/agent-card.json or /llms.txt on your domain.

To cover those, use a Cloudflare Worker or the WordPress plugin, or add an agent-card redirect. See What each install covers.

Does it slow down my site? No. The pasted snippet is a small inline loader that does nothing until your page has finished loading, so it never delays your page from appearing or from finishing loading. Then the script adds four <link> tags, checks once whether returning-visitor tracking is on for your site (a small request your visitors’ browsers cache for five minutes), and sends one small report. The script is under 14 kB compressed. See Site speed and uptime.

Does it set cookies? No. Even when Returning visitors is on, Sill uses local storage only. If local storage is unavailable Sill sends no returning-visitor ID at all, so a cookie never makes your pages uncacheable at the edge. It reads no other cookies, and requests to Sill are sent without credentials.

Do I need it on every page? Put it in your site-wide layout so every page load is counted.