Verify you own a website
Mayfly accepts visits, connects Search Console and runs audits only for a website you have proved is yours. There are two ways to prove it.
With the script
The script you copy from Install carries a data-verify code. After you publish it, choose I’ve added the script. Check installation. Mayfly then:
- requests your public HTTPS homepage, following a limited number of redirects between the bare domain and its www version;
- reads the first megabyte of the page, which is where the head is;
- looks for the Mayfly script with your site ID and the current verification code.
It doesn’t run your site’s JavaScript, so a script that appears only after the page loads, from a tag manager or a consent tool, is not found. Redirects to other subdomains, from HTTPS to HTTP, or with a query string are not followed, and private or password-protected sites can’t be checked.
The code is public and used once. You can leave data-verify in the script after verification.
With a DNS record
If the script check can’t reach your homepage, prove ownership in DNS instead. On Install, under Hostname ownership, create a DNS challenge, then add one TXT record at your DNS provider:
| Field | Value |
|---|---|
| Type | TXT |
| Host or name | _mayfly (the full name is _mayfly.example.com) |
| Value | mayfly-site-verification= followed by your challenge |
_mayfly.example.com. TXT "mayfly-site-verification=YOUR_CHALLENGE"Then choose Check DNS. DNS changes can take a while to spread, so try again later if the record isn’t found yet. Replace challenge issues a new value and makes the old one stop working. Mayfly stores only a hash of the challenge.
Who can verify
The site’s owner or an admin. Visits that arrive before a site is verified are discarded, so reload your website after verifying. Next: set up goals.
Something here doesn’t match what you see? Write to kirylapps@gmail.com.