Skip to content
DocsWordPress

Install on WordPress

Paste the script into a site-wide header field. There is no Mayfly plugin to install.

Steps

  1. In Mayfly, open Install for the website, choose WordPress and copy the script.
  2. In WordPress, open the header-code plugin you already use, or your theme’s global header-code setting.
  3. Paste the script into the Header field and save. Don’t paste it into a post or page.
  4. Clear your site’s cache, including any caching plugin.
  5. Back in Mayfly, choose I’ve added the script. Check installation.
Example script
<script defer
  src="https://getmayfly.com/mayfly.js"
  data-site="YOUR_SITE_ID"
  data-verify="YOUR_VERIFICATION_CODE"></script>

Use your own script from Install: the site ID and verification code above are placeholders.

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