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 soonThe 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 soonWPCode'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.
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 soonWPCode'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.
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.