Description
SourceTag populates hidden fields in your contact forms with marketing attribution data. When a lead submits a form, you see which channel, campaign, and keyword brought them in.
What gets captured:
- Channel (Paid Search, Organic Social, Email, etc.)
- UTM parameters (source, medium, campaign, term, content)
- Click IDs (gclid, fbclid, msclkid, gbraid, wbraid)
- Landing page and referrer
- Visit count and days to conversion
- Device type
Form builders:
Works with Contact Form 7, Gravity Forms, WPForms, Elementor Forms, Formidable Forms, HubSpot Forms, and any HTML form that supports hidden fields.
Why use the plugin instead of just adding the script tag?
The plugin sets cookies via PHP (HTTP headers) instead of JavaScript. Safari, Brave, and other privacy-focused browsers cap JavaScript cookies at 7 days. Server-set cookies last up to 400 days.
External services
This plugin connects to SourceTag, a hosted lead attribution service. It does not work without a SourceTag account.
It loads your SourceTag tracking script from cdn.sourcetag.io on every front-end page. On form submit, the script sends your site ID and a timestamp to cdn.sourcetag.io. No form contents or personal data are sent to SourceTag.
SourceTag terms: https://sourcetag.io/legal/terms
SourceTag privacy policy: https://sourcetag.io/legal/privacy
The _sourcetag cookie is set on your visitors’ browsers. Make sure your privacy policy and cookie notice cover it where your visitors’ jurisdiction requires consent.
Screenshots


Installation
- In WordPress, go to Plugins > Add New Plugin and search for SourceTag.
- Click Install Now, then Activate.
- Go to Settings > SourceTag and paste your Script URL from the SourceTag dashboard.
- Add hidden fields to your forms. The SourceTag docs cover each form builder.
FAQ
-
Is SourceTag free?
-
SourceTag is a paid service with a 14-day free trial, no credit card needed. The plugin is free, but it needs a SourceTag account to work. See pricing.
-
Where do I get my script URL?
-
Sign up at sourcetag.io, add your site, and copy the script URL from the Install Script section on your site’s page.
-
No. You add hidden fields to your forms yourself. SourceTag detects them and fills in the values when a visitor submits. The docs cover how to do this for each form builder.
-
What about Safari and Brave?
-
JavaScript cookies in these browsers expire after 7 days. The plugin’s server-side cookie option (on by default) sets the cookie via PHP instead, which these browsers allow for up to 400 days.
-
The plugin and script set one first-party cookie,
_sourcetag, on your domain. Whether you need consent for it depends on where your visitors are. If you already gate analytics cookies behind a consent tool, load the SourceTag script the same way.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“SourceTag – Lead Source Tracking for Forms” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “SourceTag – Lead Source Tracking for Forms” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.6
- First release on WordPress.org
