Integrate a WordPress landing page
Connect your WordPress site to RoyLead with the plugin — install it, paste the site key, add the form shortcode and start collecting clicks and leads.
Updated on October 11, 2026
If your landing pages are on WordPress, you don't have to touch any code: you install the RoyLead Connector plugin, paste the site key and add a shortcode to the page. From there, the form, the clicks and the leads are handled automatically.
💡 The site's domain must be in RoyLead → Domains with type WordPress (see Connect a domain ↗): that's where you create the site key. The plugin takes care of the rest.
Download and install the plugin
Go to the Plugin page and download the latest version of the plugin (a .zip file).
Then, in your WordPress dashboard: Plugins → Add new → Upload plugin → choose the .zip → Install → Activate.
Connect the site with the site key
The site connects with a single key, which belongs to the domain (not to you personally): if the domain moves to another team member the plugin keeps working, and the key only opens that site.
- In RoyLead go to Domains. The site's domain must have type WordPress (gear icon → Site type).
- In the Site Type column click «Connect WordPress», then Create key.
- Copy the key (
rl_...): it's shown only once. If you lose it, regenerate it from the same button.
In WordPress go to RoyLead → Settings, paste the key into the Site key field and save. The plugin checks the key with RoyLead and «Connected to RoyLead: yourdomain.com» appears under the field; in RoyLead the domain's badge turns green (Plugin connected).
🔒 The key stays on your site's server and never appears in your pages: in the pages the plugin prints only a public tracking key, which it gets from RoyLead and which can only send clicks, leads and events.
⚠️ Regenerating the key disables the old one immediately: until you paste the new one into the plugin, the site is disconnected (no tracking) and the WordPress dashboard shows the «Site disconnected» notice.
Set the thank-you page (required)
You create the pages in WordPress (e.g. a "Thank you" page and your Privacy Policy), but you choose which one does what in RoyLead:
- In RoyLead go to Domains: in the service-pages column, on your WordPress domain, there are four pills (TY, PRIV, COOK, TERM).
- Click TY and pick the "Thank you" page from the site's pages, then Save. Do the same with the others.
- Thank You Page (required): the page the user is redirected to after submitting the form. As long as it's missing, the TY pill is yellow.
- Privacy Policy (recommended): if you choose it, the form will show the consent checkbox linking to that page (useful for GDPR).
- Cookie and Terms (optional): pages the plugin doesn't track as landings.
💡 Thank You and Privacy take effect from the next visit. If you've just published the "Thank you" page and can't find it in the list, save it again in WordPress and reopen the picker.
Add the form to your landing
Open the WordPress page you want to use as a landing and insert the shortcode:
[roylead_form]
That's all: the form (first name, last name, phone, address…) is generated and styled by the tracker, with phone validation and anti-spam already included. Want the form in another language? Use [roylead_form lang="en"].
Import the page into RoyLead
Pages are picked in RoyLead, not in WordPress: the plugin sends RoyLead the list of the site's published pages.
- In RoyLead go to Landing Pages → Connect landing page → Import from WordPress.
- Under your site you'll see the published pages not imported yet: tick the ones you want and press Import.
💡 Importing links the WordPress page to the landing in RoyLead, so clicks and leads are attributed correctly. From then on RoyLead keeps it aligned with the site: if you change the title or address it updates, if you trash it or set it back to draft the landing is switched off.
ℹ️ A newly published page shows up in the list right after you save it. If you don't see it, close and reopen Import from WordPress.
Customize the form colors
Form colors are set inside RoyLead, with color pickers and a live preview. There are two levels:
- Per domain — go to Domains, on your domain click the palette icon («Form colors»): they apply to all landings served on that domain.
- Per single landing — go to Landing Pages, on the landing click the palette icon: they override the domain only for that landing.

💡 Priority: landing colors → domain colors → default palette. The same form everywhere, with your palette.
Publish and verify
Publish the page and open it from your site. To test tracking, add a parameter to the URL, e.g.:
https://yoursite.com/landing?fbclid=test123&utm_source=facebook
- The click is tracked on its own when the page loads (
fbclid,gclid,utm_*, pixel cookies… read automatically). - Fill in and submit the form: the lead will appear in the Leads section, and the user will land on the Thank You Page.
💡 If the lead arrives with the campaign parameters, the integration is complete.
Extra (optional) — Capture the email on the thank-you page
Want to collect the email too, after the lead? On your Thank You Page add the shortcode:
[roylead_email_form]
A small email form will appear: the user enters it and it's added to their lead.
Troubleshooting
- The form doesn't appear / "Form not available" or «Site disconnected» notice in the dashboard → the site key is missing or no longer valid (maybe it was regenerated). Create one in Domains → Connect WordPress and paste it in RoyLead → Settings. If the notice says the key belongs to another domain, you used another site's key.
- The lead doesn't arrive → make sure the
[roylead_form]shortcode is on the page and that the page is imported into RoyLead (Step 5). - I'm not redirected after submitting → the Thank You Page isn't set (Step 3).
- The colors don't change → save again in Form Appearance and reload the page (you may have site caching enabled).
Ready to put this into practice?
Create your RoyLead account and start in minutes.