Skip to content
DocsGetting started

Getting started

Four steps: create an account, add a website, install the script, and check that a visit arrives. You need a public HTTPS website whose pages you can edit.

Create an account

Go to Start 14-day free trial and enter your email address and a password of at least 10 characters. Your name is optional. The trial needs no card and holds up to 10 websites.

We email you a link to confirm your address. Confirm it: without a confirmed address you can’t reset your password if you forget it.

Add a website

In the dashboard, choose Add website on All sites or in the site picker. Enter the website’s domain, such as example.com, and pick its timezone. The timezone decides where each day starts in your reports.

Mayfly then creates a script for that website. It carries the site’s ID and a short verification code, so each website gets its own.

Install the script

Open Install for the site, copy its script and paste it once into the <head> of every page, before </head>. Publish the change and clear any page cache. It looks like this, with your own values:

Example script
<script defer
  src="https://getmayfly.com/mayfly.js"
  data-site="YOUR_SITE_ID"
  data-verify="YOUR_VERIFICATION_CODE"></script>

There are written steps for plain HTML, Next.js, WordPress and Shopify. For anything else, read Install the script.

Check that it works

Back on Install, choose I’ve added the script. Check installation. Mayfly reads your public HTTPS homepage and looks for the script with your site ID and current verification code. That check also proves the website is yours. If your site blocks it, verify with a DNS record instead.

Once the site is verified, open it in a browser, reload, and visit a page. Then choose Check for visits. “Your site is sending visits” means Mayfly received activity in the last five minutes, and your dashboard is ready.

What to set up next

Something here doesn’t match what you see? Write to kirylapps@gmail.com.