{"id":402073,"date":"2026-11-11T09:39:22","date_gmt":"2026-11-11T09:39:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/sourcetag\/"},"modified":"2026-11-11T09:38:48","modified_gmt":"2026-11-11T09:38:48","slug":"sourcetag","status":"publish","type":"plugin","link":"https:\/\/co.wordpress.org\/plugins\/sourcetag\/","author":23602707,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.6","stable_tag":"1.0.6","tested":"7.1.4","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"SourceTag \u2013 Lead Source Tracking for Forms","header_author":"SourceTag","header_description":"Lead attribution tracking. Captures UTM parameters, click IDs, and referrer data in your form submissions.","last_updated":"2026-11-11 09:38:48","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/sourcetag.io\/integrations\/wordpress","header_author_uri":"https:\/\/sourcetag.io","rating":0,"author_block_rating":0,"active_installs":0,"downloads":124,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.6":{"tag":"1.0.6","author":"sourcetagio","date":"2026-11-11 09:38:48","revision":3795994}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3795994,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3795994,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3795994,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3795994,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3795994,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.6"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3795994,"resolution":"1","location":"assets","locale":"","width":2400,"height":1500},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3795994,"resolution":"2","location":"assets","locale":"","width":2400,"height":1500}},"screenshots":{"1":"Settings &gt; SourceTag: paste your Script URL and turn on 400-day server-side cookies.","2":"A form entry with the lead's first and last click channel, campaign, keyword, landing page and click ID filled in."}},"plugin_section":[],"plugin_tags":[9067,358,40003,550,24188],"plugin_category":[36],"plugin_contributors":[292016],"plugin_business_model":[],"class_list":["post-402073","plugin","type-plugin","status-publish","hentry","plugin_tags-attribution","plugin_tags-contact-form","plugin_tags-lead-source","plugin_tags-tracking","plugin_tags-utm","plugin_category-analytics","plugin_contributors-sourcetagio","plugin_committers-sourcetagio"],"banners":{"banner":"https:\/\/ps.w.org\/sourcetag\/assets\/banner-772x250.png?rev=3795994","banner_2x":"https:\/\/ps.w.org\/sourcetag\/assets\/banner-1544x500.png?rev=3795994","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/sourcetag\/assets\/icon.svg?rev=3795994","icon":"https:\/\/ps.w.org\/sourcetag\/assets\/icon.svg?rev=3795994","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/sourcetag\/assets\/screenshot-1.png?rev=3795994","caption":"Settings &gt; SourceTag: paste your Script URL and turn on 400-day server-side cookies."},{"src":"https:\/\/ps.w.org\/sourcetag\/assets\/screenshot-2.png?rev=3795994","caption":"A form entry with the lead's first and last click channel, campaign, keyword, landing page and click ID filled in."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p><strong>What gets captured:<\/strong><\/p>\n\n<ul>\n<li>Channel (Paid Search, Organic Social, Email, etc.)<\/li>\n<li>UTM parameters (source, medium, campaign, term, content)<\/li>\n<li>Click IDs (gclid, fbclid, msclkid, gbraid, wbraid)<\/li>\n<li>Landing page and referrer<\/li>\n<li>Visit count and days to conversion<\/li>\n<li>Device type<\/li>\n<\/ul>\n\n<p><strong>Form builders:<\/strong><\/p>\n\n<p>Works with Contact Form 7, Gravity Forms, WPForms, Elementor Forms, Formidable Forms, HubSpot Forms, and any HTML form that supports hidden fields.<\/p>\n\n<p><strong>Why use the plugin instead of just adding the script tag?<\/strong><\/p>\n\n<p>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.<\/p>\n\n<h3>External services<\/h3>\n\n<p>This plugin connects to SourceTag, a hosted lead attribution service. It does not work without a SourceTag account.<\/p>\n\n<p>It loads your SourceTag tracking script from <code>cdn.sourcetag.io<\/code> on every front-end page. On form submit, the script sends your site ID and a timestamp to <code>cdn.sourcetag.io<\/code>. No form contents or personal data are sent to SourceTag.<\/p>\n\n<p>SourceTag terms: https:\/\/sourcetag.io\/legal\/terms\nSourceTag privacy policy: https:\/\/sourcetag.io\/legal\/privacy<\/p>\n\n<p>The <code>_sourcetag<\/code> cookie is set on your visitors' browsers. Make sure your privacy policy and cookie notice cover it where your visitors' jurisdiction requires consent.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>In WordPress, go to Plugins &gt; Add New Plugin and search for SourceTag.<\/li>\n<li>Click Install Now, then Activate.<\/li>\n<li>Go to Settings &gt; SourceTag and paste your Script URL from the <a href=\"https:\/\/app.sourcetag.io\">SourceTag dashboard<\/a>.<\/li>\n<li>Add hidden fields to your forms. The <a href=\"https:\/\/sourcetag.io\/docs\">SourceTag docs<\/a> cover each form builder.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"is%20sourcetag%20free%3F\"><h3>Is SourceTag free?<\/h3><\/dt>\n<dd><p>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 <a href=\"https:\/\/sourcetag.io\/pricing\">pricing<\/a>.<\/p><\/dd>\n<dt id=\"where%20do%20i%20get%20my%20script%20url%3F\"><h3>Where do I get my script URL?<\/h3><\/dt>\n<dd><p>Sign up at <a href=\"https:\/\/sourcetag.io\">sourcetag.io<\/a>, add your site, and copy the script URL from the Install Script section on your site's page.<\/p><\/dd>\n<dt id=\"does%20this%20create%20hidden%20fields%20in%20my%20forms%3F\"><h3>Does this create hidden fields in my forms?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"what%20about%20safari%20and%20brave%3F\"><h3>What about Safari and Brave?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"do%20i%20need%20a%20consent%20banner%3F\"><h3>Do I need a consent banner?<\/h3><\/dt>\n<dd><p>The plugin and script set one first-party cookie, <code>_sourcetag<\/code>, 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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>First release on WordPress.org<\/li>\n<\/ul>","raw_excerpt":"Captures UTM parameters, click IDs, referrer data, and landing pages in your contact form submissions. First-touch and last-touch attribution.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/402073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=402073"}],"author":[{"embeddable":true,"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sourcetagio"}],"wp:attachment":[{"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=402073"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=402073"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=402073"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=402073"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=402073"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/co.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=402073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}