Static sites
Clearlook on a plain HTML site or a static site generator (Astro, Hugo, Eleventy, Jekyll).
- The tag goes in the shared layout's
<head>so every page has it once: Astrosrc/layouts/*.astro, Hugolayouts/partials/head.htmlorbaseof.html, Eleventy and Jekyll the base layout, plain HTML every page. - Nothing else is needed for visits, sources, pages and countries.
- Goals: a click that matters gets
onclick="platform.capture('Downloaded brochure')", or a goal set up in the dashboard on a page path, with no code. - Outbound links and downloads are counted when the tag has
data-outbound="true"anddata-downloads="true"(both off by default). They arrive asoutbound_linkandfile_download. - Pitfall: a host-level Content-Security-Policy (Netlify
_headers, Vercelvercel.json) needshttps://app.clearlook.devinscript-srcandconnect-src.