Install Chartsy on a static HTML site

Paste the script before </head> on every page.

1Add the script

Copy your snippet from Growth Attribution in the Chartsy sidebar: step 1 of Set up tracking has it with your site's public key, which is safe to expose:

Paste it inside <head>, before </head>, on every page - including the pages where people sign up.

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Your site</title>
    <script async src="https://chartsy.fra1.digitaloceanspaces.com/production/static/track.js"
            data-key="ch_pk_..."
            data-api="https://dashboard.chartsy.app/api/attribution"></script>
  </head>
  <body>
    ...
  </body>
</html>

If your pages share an include or template partial for the head, put it there instead, once.

2Check it worked

Open your deployed site in a private window, then in Chartsy go to Settings → Domains and click View setup checklist on the site's row. "Add tracking snippet" flips to done as soon as the first visit lands - it is inferred from real traffic, so it confirms the snippet is firing, not just pasted.

Nothing arriving? View the page source and confirm the <script> tag is there with your real key. A blank or placeholder key is the most common cause.

Testing locally records nothing: the script ignores localhost and private IP addresses. Automated browsers (Playwright, Puppeteer, Selenium, headless Chrome) are ignored too, so automated tests won't show up in your reports.

3Track signups

The script now records where each visitor came from. To see which channels bring signups - and later revenue - tell Chartsy who signed up.

Other stacks: see all signup tracking guides.

Related articles

Chartsy Team

Written by

Chartsy Team

Analytics team at Chartsy

The Chartsy Team writes guides, product updates, and resources to help SaaS and eCommerce founders make sense of their metrics, without SQL or spreadsheets.

Chartsy
Ministry of Economy and Innovation
Startup Albania

The Chartsy program is realized with the financial support of the Albanian Government through the Ministry of Economy and Innovation, under the Grant 2026 scheme, and is implemented by the Innovation4Albania Agency.