# Install Foresite

Foresite is one line of code. Add it to the `<head>` of every page on your site:

```html
<script defer src="https://t.foresite.dev/s/YOUR_SITE_ID.js"></script>
```

Copy your exact line from the dashboard: open your site, then **Settings → Install**. It's the same line for every page.

The script is about 1 KB and [open source](https://github.com/devontheriault/foresite-tracker), so you or your clients can check exactly what it does.

Step-by-step guides: [Webflow](https://foresite.dev/docs/webflow) · [Framer](https://foresite.dev/docs/framer) · [Squarespace](https://foresite.dev/docs/squarespace) · [WordPress](https://foresite.dev/docs/wordpress) · [Wix](https://foresite.dev/docs/wix) · [Shopify](https://foresite.dev/docs/shopify) · [Carrd](https://foresite.dev/docs/carrd) · [Ghost](https://foresite.dev/docs/ghost)

Frameworks: [Next.js and Vercel](https://foresite.dev/docs/nextjs) · [Astro](https://foresite.dev/docs/astro) · [Nuxt](https://foresite.dev/docs/nuxt) · [SvelteKit](https://foresite.dev/docs/sveltekit) · [React Router and Remix](https://foresite.dev/docs/react-router) · [Gatsby](https://foresite.dev/docs/gatsby)

Static sites and docs: [Hugo](https://foresite.dev/docs/hugo) · [Jekyll](https://foresite.dev/docs/jekyll) · [Eleventy](https://foresite.dev/docs/eleventy) · [Docusaurus](https://foresite.dev/docs/docusaurus) · [Starlight](https://foresite.dev/docs/starlight) · [VitePress](https://foresite.dev/docs/vitepress) · [MkDocs](https://foresite.dev/docs/mkdocs)

## Check it's working

Open your published site in a normal browser window. The **Installation check** in **Settings → Install** turns green as soon as the first pageview arrives, usually within seconds. If it doesn't:

- **Is the line in the `<head>` of the published site?** Many site builders only add custom code after you publish.
- **Are you on `localhost`?** Foresite ignores local development so test traffic doesn't pollute your stats.
- **Does your site's address match?** Foresite only accepts pageviews from the address you entered (and its subdomains, unless you turned that off).
- **Is an ad blocker on?** Try another browser, or set up a [custom domain](https://foresite.dev/docs/custom-domain).

## Next steps

- [Track signups, purchases and other events](https://foresite.dev/docs/custom-events)
- [Track outbound links, downloads and 404s automatically](https://foresite.dev/docs/automatic-events)
- [Stop counting your own visits](https://foresite.dev/docs/self-exclusion)
- [Share dashboards and send reports to clients](https://foresite.dev/docs/agencies)
