Install on a plain HTML site
For static sites, hand-written HTML and static site generators that let you edit a shared head.
Steps
- In Mayfly, open Install for the website and keep Script selected. Copy the script.
- Paste it inside
<head>, before</head>, on every page. If your pages share a header template or include, paste it there once. - Publish, and clear any page or CDN cache.
- Back in Mayfly, choose I’ve added the script. Check installation.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example</title>
<script defer
src="https://getmayfly.com/mayfly.js"
data-site="YOUR_SITE_ID"
data-verify="YOUR_VERIFICATION_CODE"></script>
</head>
<body>…</body>
</html>Use your own script from Install: the site ID and verification code above are placeholders.
After the check
Open your website, reload it and visit a page, then choose Check for visits. If nothing arrives, go through the checklist.
Something here doesn’t match what you see? Write to kirylapps@gmail.com.