Skip to main content

How to Add Leadsourcing’s Script to WordPress via a Plugin

Step by Step guide to inserting the Leadsourcing tracking script using a WordPress plugin for site-wide visitor identification.

Leadsourcing Team avatar
Written by Leadsourcing Team
Updated over 2 weeks ago

Add the Leadsourcing script to your WordPress website quickly using plugin Header, Footer, and Post Injections: no code expertise required. This enables real-time website visitor identification and seamless AI-powered lead generation.

Requirements

❕ Before starting, you must:

  • Have administrative access to your WordPress site.

  • Ensure the “Head, Footer and Post Injections” plugin is installed and activated. Other header script plugins can work similarly.

  • Copy the complete Leadsourcing tracking script from your dashboard.

If you are unsure how to install plugins, see the official plugin installation guide in your WordPress admin.

Step 1: Log in to WordPress and Access Plugin Settings

  1. Log in to your WordPress admin dashboard.

  2. In the left-hand sidebar, select Settings.

  3. Click Header and Footer or the plugin’s equivalent name (may vary by plugin or language).

Acces Plugin Settings

Step 2: Paste the Script Into the Header

  1. In the plugin’s settings page, find the <HEAD> PAGE SECTION INJECTION area or “Scripts in the header.”

  2. In the ON EVERY PAGE box, paste your entire Leadsourcing tracking script. It should be within <script>...</script> tags.

    • Example: <script>/* your Leadsourcing tracking code */</script>

  3. Confirm there are no typos or stray characters.

Step 3: Save Your Settings

  1. Click Save at the top or bottom of the page to apply changes.

Verification & Next Steps

  • Visit your website in a private/incognito window.

  • Check Leadsourcing’s dashboard (or your analytics) for tracking activity.

  • Changes should appear immediately, but clear your browser cache if you do not see updates.

Tips & Best Practices

  • Always double-check the script format before saving.

  • Use only one plugin for header injections to prevent accidental duplicate scripts.

  • If your WordPress site uses a caching plugin, purge the cache after adding the script.

Contact support if you need help with plugin installation or script troubleshooting. With the script set up, you unlock real-time visitor identification and enhanced AI-powered lead generation from your website.

Did this answer your question?