{"id":272,"date":"2026-10-17T14:16:41","date_gmt":"2026-10-17T14:16:41","guid":{"rendered":"http:\/\/plugin-docs.com\/?post_type=doc&#038;p=272"},"modified":"2026-10-18T21:12:47","modified_gmt":"2026-10-18T21:12:47","slug":"track-utm-campaign-data","status":"publish","type":"doc","link":"https:\/\/dragwyb.com\/docs\/track-utm-campaign-data\/","title":{"rendered":"Track UTM Campaign Data"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">UTM parameters identify campaign links, such as an email newsletter or paid promotion. Smart Form Builder by Dragwyb\u2019s tracker reads <code>utm_source<\/code>, <code>utm_medium<\/code>, <code>utm_campaign<\/code>, <code>utm_term<\/code>, and <code>utm_content<\/code> from the current page URL and sends them with tracking events. Capturing these values requires visitor tracking to be enabled.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Enable visitor tracking<\/h2>\n\n\n<ol class=\"wp-block-list\">\n<li>Open <strong>Smart Forms \u2192 Settings \u2192 GDPR \/ Privacy<\/strong>.<\/li>\n<li>Enable <strong>Enable Visitor Tracking<\/strong>. This setting defaults to off.<\/li>\n<li>Review the cookie, Do Not Track, administrator tracking, user-details, and retention options to ensure they match your site\u2019s privacy policy.<\/li>\n<li>Save settings before testing a campaign URL.<\/li>\n<\/ol>\n\n\n<h2 class=\"wp-block-heading\">Add UTM parameters to a campaign URL<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Use standard UTM parameter names in the destination URL. For example:<\/p>\n\n\n<pre class=\"wp-block-code\"><code>https:\/\/example.com\/contact\/?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=autumn_launch&amp;utm_term=business_forms&amp;utm_content=button<\/code><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>utm_source<\/strong> \u2014 the source sending traffic, such as a newsletter or partner.<\/li>\n<li><strong>utm_medium<\/strong> \u2014 the channel type, such as email, cpc, paid_social, or referral.<\/li>\n<li><strong>utm_campaign<\/strong> \u2014 the campaign name.<\/li>\n<li><strong>utm_term<\/strong> \u2014 an optional keyword or targeting label.<\/li>\n<li><strong>utm_content<\/strong> \u2014 an optional creative or link variation label.<\/li>\n<\/ul>\n\n\n<h2 class=\"wp-block-heading\">Where the plugin stores campaign data<\/h2>\n\n\n<ul class=\"wp-block-list\">\n<li>The tracking script sends all five UTM values with pageview and other tracking events.<\/li>\n<li>New analytics sessions store source, medium, campaign, term, and content values.<\/li>\n<li>The visitor record stores first-touch source, medium, and campaign values.<\/li>\n<li>When tracking and user-detail collection are enabled, form-entry metadata can also include UTM values read from the submission request.<\/li>\n<\/ul>\n\n\n<h2 class=\"wp-block-heading\">Test attribution and understand limitations<\/h2>\n\n\n<ol class=\"wp-block-list\">\n<li>Open a public page using a campaign URL with recognizable test values.<\/li>\n<li>Allow tracking to record the visit, then review <strong>Smart Forms \u2192 Analytics<\/strong> and the available traffic-source details.<\/li>\n<li>If you submit a form, inspect the entry\u2019s lead attributes to see whether UTM values were saved.<\/li>\n<\/ol>\n\n\n<p class=\"wp-block-paragraph\">Entry-level UTM values are read separately from the form submission request. The inspected source does not show the frontend automatically copying every page URL UTM parameter into that request, so do not assume every entry will contain campaign values even if analytics tracking recorded them. Session attribution is written when a session is created; adding UTM parameters later in an existing session does not necessarily replace that session\u2019s original attribution. Test the exact campaign path you use.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Screenshot to add: [Example campaign URL with UTM parameters]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enable visitor tracking to capture UTM source, medium, campaign, term, and content parameters; understand session attribution and entry-level limitations.<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":267,"menu_order":0,"template":"","class_list":["post-272","doc","type-doc","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":2,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/272\/revisions"}],"predecessor-version":[{"id":1221,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/272\/revisions\/1221"}],"up":[{"embeddable":true,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/267"}],"wp:attachment":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/media?parent=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}