Website integration
WordPress marketing attribution with one script, for every form
Contact Form 7, WPForms, Gravity Forms, Elementor, Ninja Forms, a Calendly embed, a chat widget: SourceLoop covers them all from one snippet in your WordPress head, and ties each lead to the channel behind it, from a Google ranking or Pinterest pin to an email or ad.
Free 7-day trial. No credit card required.
- Install
- WPCode, Insert Headers, or header.php
- Form plugins
- CF7, WPForms, Gravity, Elementor, more
- Plugin to maintain
- None
- Login forms
- Skipped automatically
How does SourceLoop add attribution to a WordPress site?
SourceLoop adds marketing attribution to WordPress with one first-party tracking script placed in the site's head through a header-code plugin such as WPCode or Insert Headers and Footers, or the theme's header.php. Once loaded, it records every visitor's channel, UTM parameters, landing page, and page path, and automatically captures lead forms from any form plugin on published pages, skipping login and password forms. Booking embeds and chat widgets on the same pages are attributed through their own SourceLoop integrations, and every lead can sync to your CRM and to Meta, Google Ads, Microsoft Ads, and ChatGPT Ads.
Updated November 2026
The gap
Why WordPress sites lose their lead source
-
Every form plugin needs its own fix
UTM capture is set up differently in each plugin, with hidden fields, smart tags, or add-ons, and most sites run more than one form tool.
-
Plugins pile up
Each attribution or UTM plugin adds weight, update risk, and another thing that can conflict with caching and page builders.
-
Analytics can't connect leads to revenue
GA4 counts form submissions, but it can't tell your CRM which person came from which campaign or what they spent later.
What you get
What one script does for your WordPress site
-
All form plugins at once
Contact Form 7, WPForms, Gravity Forms, Elementor Forms, Ninja Forms, Fluent Forms, Formidable, and more are captured on submit with no per-form setup.
-
Bookings and chats on the same site
Calendly, Cal.com, Tidio, Tawk.to, and other embeds on your pages connect through their SourceLoop integrations and share the same visitor history.
-
Login and reset forms ignored
Sign-in, password reset, and one-time-code forms are recognised and skipped, and you can exclude other pages or forms without touching code.
-
Leads through to revenue
Every lead syncs to HubSpot, Salesforce, or Pipedrive with its source and rolls into revenue and ROAS by channel, credited first-touch or with a multi-touch attribution model.
The data
What SourceLoop records for WordPress visitors
Every lead from your WordPress site appears in Contacts with these values.
| Field | Example | Written to |
|---|---|---|
| Acquisition and converting channel | Organic Search, then Email | Lead |
| UTM parameters | source, medium, campaign, content, term | Lead |
| Ad click IDs | gclid, fbclid, msclkid | Lead |
| Landing page and path | /blog/garden-design → /services → /contact | Journey |
| Form plugin and form | Gravity Forms · Quote request | Conversion |
Compared
WordPress analytics vs UTM plugins vs SourceLoop
UTM plugins means installing an attribution add-on, or one per form plugin, and configuring hidden fields in every form.
| Capability | Analytics plugin | UTM add-on plugins | SourceLoop |
|---|---|---|---|
| Source on every lead from every form plugin | No Counts only | Partly Per plugin setup | Yes One script |
| Visitor journey before converting | Partly Aggregate paths | No | Yes Per lead |
| Booking and chat leads | No | No | Yes Via integrations |
| Plugins to update | No One more | No One or more | Yes None |
| Leads sent to ad platforms | Partly Pixel events | No | Yes Server-side, valued |
Why it holds up
Attribution without adding another plugin
SourceLoop is a script, not a WordPress plugin, so there's nothing to update or conflict with. It tracks first-party on your domain and sends conversions to ad platforms from its own servers.
Visitor data stays on your WordPress domain
Leads sent to ad platforms without more tags
Posts and pages read before each lead
Leads and revenue for the whole site
How it works
Install on WordPress in three steps
Copy-and-paste instructions for every platform are in Install the SourceLoop tracking pixel.
-
<script async src="https://t.sourceloop.ai/tracking-v3.js"></script>
01Copy your tracking snippet
In SourceLoop, open Setup, Tracking code, and copy the snippet for your website.
-
02Add it to the head
Paste it with WPCode or Insert Headers and Footers, or into header.php before the closing head tag.
-
- Channel Organic Search
- Landing /blog/garden-design
- Pages 4
03Clear caches and test
Purge your caching plugin, open the site in a private window with ?utm_source=test, and submit a form.
Conversion sync
Send WordPress leads to your ad platforms
Report form fills, bookings, and chats from your WordPress site, or only Good leads, to Google Ads, ChatGPT Ads, Microsoft Ads, and Meta as offline conversions with their value.
- Every lead from any form plugin
- Good leads, with value
- Leads that become customers
Used by 750+ marketing teams, agencies, and SaaS companies
FAQ
WordPress attribution FAQ
Is SourceLoop a WordPress plugin?
No. It's a script you add to your site's head, using a header-code plugin like WPCode or Insert Headers and Footers, or your theme's header.php.
Which form plugins are supported?
Any form that posts from a page with the snippet, including Contact Form 7, WPForms, Gravity Forms, Elementor Forms, Ninja Forms, Fluent Forms, and Formidable. Each also has its own setup guide.
Will it capture login or password forms?
No. Sign-in, password reset, and one-time-code forms are recognised as credential forms and skipped. You can exclude other forms or pages under Exclusions on the Tracking code page.
Does it work with caching plugins?
Yes, when the script loads in the head and isn't deferred in a way that breaks load order. Our caching guide covers WP Rocket, W3 Total Cache, and others.
What about my consent banner plugin?
If your consent tool blocks scripts until consent, allowlist SourceLoop in the analytics category or turn on cookieless mode. SourceLoop also follows Google Consent Mode.
Can I run several WordPress sites?
Yes. Each separate site gets its own SourceLoop website and snippet, so attribution stays separate.