statically.
Building sites

SEO, analytics and cookies

Titles, sharing images and structured data come from your blueprints. Analytics are chosen per site, with consent handled for you.

SEO per blueprint

Turn SEO on in a blueprint and every entry gets a title, description and sharing image, plus overrides the client can use on any page (title, description, sharing image, hide from search engines).

In a blueprint
"seo": {
  "titlePattern": "{title}, {role} | {site.name}",
  "descriptionFrom": "bio",
  "imageFrom": "photo"
}

"seo": true gives the defaults: {title} | {site.name}, with the description taken from the first text field.

Structured data

Map fields to schema.org properties. Empty values are left out, and a media field becomes an absolute image URL.

In a blueprint
"schema": {
  "type": "LocalBusiness",
  "map": {
    "name": "{title}",
    "telephone": "{phone}",
    "image": "{photo}",
    "address": { "@type": "PostalAddress", "streetAddress": "{address}" }
  }
}

Site-wide SEO lives in site.json: seo.defaultImage names a media setting used when a page has no sharing image of its own, and seo.schema describes the site's Organization. Patterns can use {field}, {title}, {slug}, {url}, {site.name}, {site.url} and {setting.group.field}.

The layout's @seo writes all of it, along with the canonical URL, Open Graph tags, robots and breadcrumbs. Every live site also gets a sitemap and a robots.txt.

Analytics

Measuring visits is chosen per site in the agency panel's Analytics tab, not written into templates. The options are Umami (no cookies, no banner), Google Analytics 4 and Google Tag Manager. There's nowhere to paste other tracking code, by design.

@analytics in the layout's head writes whatever was chosen. Tracking loads on published pages only, never in previews.

Consent, only when it's needed

Published sites set no cookies unless something on them asks to, so most need no banner at all. With GA4 or Tag Manager set, @analytics adds a banner with equal Accept and Reject buttons and loads nothing of Google's until the visitor accepts. Put @consentLink in the footer to let visitors change their mind; on sites that don't ask for consent it writes nothing.

To use a banner of your own design, add views/components/consent-banner.blade.php with buttons carrying data-st-consent="accept" and data-st-consent="reject", and keep the two equally prominent.

Don't add tracking or third-party scripts by hand. A build warns about any script or embedded frame that didn't come from @analytics, naming the pages, because it would skip the consent banner.

For a privacy page, list what the site uses with $site->tracking(), so the page can't drift from what the site actually does.