Formleak
← All install guides

Install guide

Add Formleak to WordPress

With the free WPCode plugin, no theme editing needed.

No cookies. Never reads what people type.

  1. Step 1: Install WPCode

    In your WordPress admin, go to Plugins › Add New, search for “WPCode” (WPCode – Insert Headers and Footers + Custom Code Snippets), then click Install Now and Activate.

    Screenshot coming soon
    The WordPress plugin search showing WPCode with its Install Now button
  2. Step 2: Add a new HTML snippet

    Go to Code Snippets › + Add Snippet. On the “Add Your Custom Code” card click + Add Custom Snippet, then choose HTML Snippet.

    Screenshot coming soon
    WPCode's Add Snippet screen with HTML Snippet selected
  3. Step 3: Paste the Formleak line

    Give the snippet a title such as “Formleak”, then paste the line below into the code box.

    Paste it as a site-wide header snippet in WPCode.

    <script src="https://formleak.com/t.js" data-site="YOUR_SITE_KEY" defer></script>
  4. Step 4: Load it on every page

    In the Insertion panel keep Auto Insert, and under Location choose Site Wide Header. That puts the line inside the head of every page.

    Screenshot coming soon
    WPCode's Insertion panel with Auto Insert and Site Wide Header selected
  5. Step 5: Save and switch it on

    Click Save Snippet and set the snippet's switch to Active.

  6. Step 6: Check it's working

    Open a page on your live site that has a form and click into a field. Then open your website in Formleak: the setup check turns green as soon as data arrives.

    Open the setup check

Good to know

  • WordPress.com: plugins need a paid plan (Personal or higher). Free WordPress.com sites can't add this code. Self-hosted WordPress.org sites always can.
  • Using a caching or speed plugin (such as WP Rocket, LiteSpeed Cache or Autoptimize)? Clear its cache after saving. If it has a “delay JavaScript” option, exclude formleak.com/t.js.
  • Prefer editing your theme? Add the line just before </head> in a child theme. Changes to a parent theme are lost when the theme updates.

Based on WordPress's own help pages: WPCode plugin, WPCode snippet locations, WordPress.com plugins and plans. Menus change from time to time; if something looks different, their help pages have the latest.