Configure site-wide settings, design systems, and global content.
Site configuration controls global settings that apply across your entire site. This includes design variables, global content fields, and custom HTML for scripts and analytics.
Site Fields are global content that appears across multiple pages. They’re perfect for content that needs to be consistent site-wide but may change over time.
The Head HTML section lets you add custom HTML to the <head> of every page on your site. Use this for analytics, fonts, meta tags, and other site-wide scripts.
Head HTML supports Svelte syntax and has access to site fields, allowing you to dynamically generate content based on your site configuration.
CSS Variables (Design System):Define a design system for your site using CSS Custom Properties. Define colors, typography, spacing, and other design tokens once, then use them across all your blocks.
To use site fields in Head HTML, first create the fields in Site → Fields, then reference them by name in your Head HTML code.
Analytics & Tracking:
<!-- Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"></script><script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'GA_MEASUREMENT_ID');</script><!-- Plausible Analytics --><script defer data-domain="yourdomain.com" src="https://plausible.io/js/script.js"></script>
Filter admin routes from analytics: Prevent /admin routes from being tracked:
<!-- Only load analytics on public pages -->{#if !window.location.pathname.startsWith('/admin')} <script defer data-domain="yourdomain.com" src="https://plausible.io/js/script.js"></script>{/if}
Head HTML is added to every page. Keep it minimal to avoid slowing down your site. Non-critical scripts (analytics, chat widgets, etc.) should be placed in Body Footer HTML instead to improve page load speed.
The Body Footer HTML section lets you add custom HTML before the closing </body> tag of every page. Use this for scripts that should load after the page content.
Body Footer HTML only supports static HTML - it does not support Svelte syntax or access to site fields. If you need dynamic content, use the Head HTML section instead.