How to Install LeadCenter JavaScript on WordPress

This guide explains how to install your LeadCenter external form JavaScript on a WordPress website.

The script should be placed at the bottom of your website page, just before the closing </body> tag.


LeadCenter JavaScript Code

<script>
!function(){
let t=document.getElementsByTagName("body").item(0),
e=document.createElement("script");
e.setAttribute("type","text/javascript"),
e.setAttribute("src","https://node.leadcenter.ai/api/external-forms/va973woq"),
t.appendChild(e);
let s=document.getElementsByTagName("body").item(0),
x=document.createElement("script");
x.setAttribute("type","text/javascript"),
x.setAttribute("src","https://node.leadcenter.ai/api/external-forms/iframe/va973woq"),
s.appendChild(x);
}();
</script>

Method 1 (Recommended): Install on All Pages Using a Plugin

  1. Go to WordPress Dashboard → Plugins → Add New.
  2. Search for WPCode or Insert Headers and Footers.
  3. Install and activate the plugin.
  4. Open the plugin settings and locate the Footer section.
  5. Paste the LeadCenter JavaScript code into the footer field.
  6. Save your changes.

The script will now load on every page of your website.


Method 2: Add to Theme Footer (Advanced)

Warning: If you change your theme, this code may be removed.

  1. Go to Appearance → Theme File Editor.
  2. Open the footer.php file.
  3. Find the closing </body> tag.
  4. Paste the LeadCenter JavaScript code directly above it.
  5. Click Update File.

Method 3: Install on a Single Page Only

  1. Edit the page where you want the form to appear.
  2. Add a Custom HTML block at the bottom of the page.
  3. Paste the LeadCenter JavaScript code inside the block.
  4. Update the page.

The script will now load only on that specific page.

Need more help?

If you can’t find the answers you’re looking for, our support specialists are available to answer your questions and troubleshoot if necessary.

  • Phone Call (888) 291-7116. Our main hours are Monday to Friday 7 am-5 pm Central Time.
  • Support Ticket Send your questions and inquiries via email to support@leadcenter.ai. A support ticket will be created and one of our team members will get back to you as quickly as possible.