diff --git a/site/src/layouts/Base.astro b/site/src/layouts/Base.astro index 373ed30..ed50ee2 100644 --- a/site/src/layouts/Base.astro +++ b/site/src/layouts/Base.astro @@ -10,9 +10,21 @@ import TrustStrip from "../components/TrustStrip.astro"; export interface Props { title: string; description?: string; + /** Opt in to the TrustedSite trustmark (order/checkout + top landing pages + only, to stay under the free 500 impressions/mo). */ + trustedsite?: boolean; } -const { title, description = "" } = Astro.props; +const { title, description = "", trustedsite } = Astro.props; + +// TrustedSite trustmark is metered (free tier = 500 impressions/mo), so load it +// ONLY where it lifts conversions: order/checkout flows + healthcare landing +// pages (our paid/cold-traffic destinations). Auto-detected from the path so no +// per-page wiring is needed; an explicit `trustedsite` prop can still override. +const path = Astro.url?.pathname || ""; +const showTrustedSite = + trustedsite ?? + (path.startsWith("/order") || path.startsWith("/services/healthcare")); // Read the nav + footer partials (extracted from prod homepage) let navHtml = ""; @@ -34,6 +46,12 @@ try { + {/* TrustedSite trustmark loads ONLY on pages that opt in (order/checkout + + top campaign landing pages) to stay under the free 500 impressions/mo. + Gated via the `trustedsite` flag, set by those pages. */} + {showTrustedSite && ( + + )} @@ -63,6 +81,6 @@ try {
- +