{"id":3363,"date":"2024-11-20T06:50:28","date_gmt":"2024-11-20T06:50:28","guid":{"rendered":"https:\/\/gaconnector.com\/docs\/?p=3363"},"modified":"2025-09-22T11:23:10","modified_gmt":"2025-09-22T11:23:10","slug":"how-to-integrate-ga-connector-with-jotform","status":"publish","type":"post","link":"https:\/\/gaconnector.com\/docs\/how-to-integrate-ga-connector-with-jotform\/","title":{"rendered":"How to integrate GA Connector with Jotform"},"content":{"rendered":"<p data-pm-slice=\"1 1 [&quot;blockquote&quot;,{}]\">The instructions below apply to\u00a0<strong>Cookie-Based integration<\/strong>.<\/p>\n<p data-pm-slice=\"1 1 [&quot;blockquote&quot;,{}]\">If you are using\u00a0<strong>API-Based integration<\/strong>, please note that Jotform Forms does not support it. You will need to follow the <strong>Cookie-Based integration<\/strong> steps instead.<\/p>\n<p data-pm-slice=\"1 1 [&quot;blockquote&quot;,{}]\">Not sure which instructions to follow? Start here:\u00a0<strong><a class=\"ProsemirrorEditor-link\" href=\"https:\/\/gaconnector.com\/docs\/how-to-check-which-ga-connector-integration-type-youre-using\/\">How to Check Which GA Connector Integration Type You\u2019re Using<\/a>.<\/strong><\/p>\n<h4><em>Add Google Analytics data to Jotform with GA Connector\u2019s Jotform integration.<\/em><\/h4>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Installed either GA Connector\u00a0<a title=\"\" href=\"https:\/\/gaconnector.com\/download\/wordpress\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress plugin<\/a>\u00a0or GA Connector script on your website<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true\" data-url=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2017\/11\/gaconnector-tracking-code.js?v=2\"><\/pre>\n<h2>Setting up the GA Connector Fields on Jotform<\/h2>\n<p><span style=\"text-decoration: underline;\"><strong>Step 1<br \/>\n<\/strong><\/span>While editing your form on the Jotform form builder, Add a new field for each GA Connector field that you want to track. For a list of all fields that you can track, please check the table at the end of this article.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Step 2<br \/>\n<\/strong><\/span>For each field, edit their Property and set the Unique Name to the respective GA Connector field ID. E.g. If you are going to track <strong>Last Click Source<\/strong>, set the Unique Name to <strong>lc_source<\/strong>. You can check out the GA Connector fields and their respective ID on the table at the end of this article. Make sure to hide the fields that you&#8217;ve created too.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3366\" src=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-field-set-up.jpg\" alt=\"\" width=\"1537\" height=\"562\" srcset=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-field-set-up.jpg 1537w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-field-set-up-300x110.jpg 300w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-field-set-up-700x256.jpg 700w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-field-set-up-768x281.jpg 768w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-field-set-up-60x22.jpg 60w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-field-set-up-150x55.jpg 150w\" sizes=\"(max-width: 1537px) 100vw, 1537px\" \/><\/p>\n<h2>Embedding your Jotform<\/h2>\n<p><span style=\"text-decoration: underline;\"><strong>Step 1<\/strong><\/span><br \/>\nWhen embedding your Jotform, replace the &#8220;<strong>src<\/strong>&#8221; from the code to &#8220;<strong>data-jf-url<\/strong>&#8221;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3368\" src=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-embed-code.jpg\" alt=\"\" width=\"1354\" height=\"322\" srcset=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-embed-code.jpg 1354w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-embed-code-300x71.jpg 300w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-embed-code-700x166.jpg 700w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-embed-code-768x183.jpg 768w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-embed-code-60x14.jpg 60w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2024\/11\/jotform-embed-code-150x36.jpg 150w\" sizes=\"(max-width: 1354px) 100vw, 1354px\" \/><\/p>\n<p>Your final embed code should look like below:<\/p>\n<pre class=\"lang:default decode:true \"><script type=\"text\/javascript\" data-jf-url=\"--YOUR JOTFORM URL HERE---\"><\/script><\/pre>\n<p><span style=\"text-decoration: underline;\"><strong>Step 2<\/strong><\/span><br \/>\nRight after pasting your new embed code at your website. Put this additional code right after it:<\/p>\n<pre class=\"lang:default decode:true \"><script>window.addEventListener(\"DOMContentLoaded\",(event=>{let gaFields=null,ctr=0;function updateJotForms(){let jotForms=document.querySelectorAll(\"script[data-jf-url]\");if(jotForms.length>0)for(var i=0;i<jotForms.length;i++){let src=jotForms[i].dataset.jfUrl;if(gaFields){let separator=src.includes(\"?\")?\"&#038;\":\"?\";gaFieldsParams=new URLSearchParams(gaFields).toString(),src=src+separator+gaFieldsParams}jotForms[i].setAttribute(\"src\",src)}}var interval=setInterval((function(){!function(){try{if(gaFields=gaconnector.getCookieValues(),\"function\"!=typeof ga)return!!gaFields.lc_source;if(\"function\"==typeof ga.getAll)return!!gaFields.lc_source&#038;&#038;ga.getAll()[0].get(\"clientId\")}catch(err){console.log(\"GA Connector script not found\")}}()?ctr>5&&(updateJotForms(),clearInterval(interval)):(updateJotForms(),clearInterval(interval)),ctr++}),100)}));<\/script><\/pre>\n<p>In case you have multiple Jotform forms on your page, you can just paste this code once, right after all your forms.<\/p>\n<p>That&#8217;s it!<\/p>\n<h2>More than just UTM parameters<\/h2>\n<p>GA Connector adds UTM information, geolocation, referral information to your Freshworks leads.<\/p>\n<p>See below for all the information that you can add to your leads to help you find out which of your marketing activities drive sales.<\/p>\n\n<table id=\"tablepress-6\" class=\"tablepress tablepress-id-6\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\">Label<\/th><th class=\"column-2\">Input ID<\/th><th class=\"column-3\">Label<\/th><th class=\"column-4\">Input ID<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-hover\">\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\"><strong>All Traffic Sources <\/strong><\/td><td class=\"column-2\">all_traffic_sources<\/td><td class=\"column-3\"><strong>Last Click Campaign<\/strong><\/td><td class=\"column-4\">lc_campaign<\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\"><strong>Browser<\/strong><\/td><td class=\"column-2\">browser<\/td><td class=\"column-3\"><strong>Last Click Channel<\/strong><\/td><td class=\"column-4\">lc_channel<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\"><strong>City (from IP address)<\/strong><\/td><td class=\"column-2\">city<\/td><td class=\"column-3\"><strong>Last Click Content<\/strong><\/td><td class=\"column-4\">lc_content<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\"><strong>Country (from IP address)<\/strong><\/td><td class=\"column-2\">country<\/td><td class=\"column-3\"><strong>Last Click Landing Page<\/strong><\/td><td class=\"column-4\">lc_landing<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\"><strong>First Click Campaign<\/strong><\/td><td class=\"column-2\">fc_campaign<\/td><td class=\"column-3\"><strong>Last Click Medium<\/strong><\/td><td class=\"column-4\">lc_medium<\/td>\n<\/tr>\n<tr class=\"row-7 odd\">\n\t<td class=\"column-1\"><strong>First Click Channel<\/strong><\/td><td class=\"column-2\">fc_channel<\/td><td class=\"column-3\"><strong>Last Click Referrer<\/strong><\/td><td class=\"column-4\">lc_referrer<\/td>\n<\/tr>\n<tr class=\"row-8 even\">\n\t<td class=\"column-1\"><strong>First Click Content<\/strong><\/td><td class=\"column-2\">fc_content<\/td><td class=\"column-3\"><strong>Last Click Source<\/strong><\/td><td class=\"column-4\">lc_source<\/td>\n<\/tr>\n<tr class=\"row-9 odd\">\n\t<td class=\"column-1\"><strong>First Click Landing Page<\/strong><\/td><td class=\"column-2\">fc_landing<\/td><td class=\"column-3\"><strong>Last Click Term<\/strong><\/td><td class=\"column-4\">lc_term<\/td>\n<\/tr>\n<tr class=\"row-10 even\">\n\t<td class=\"column-1\"><strong>First Click Medium <\/strong><\/td><td class=\"column-2\">fc_medium<\/td><td class=\"column-3\"><strong>Last Click Timestamp<\/strong><\/td><td class=\"column-4\">lc_timestamp<\/td>\n<\/tr>\n<tr class=\"row-11 odd\">\n\t<td class=\"column-1\"><strong>First Click Referrer<\/strong><\/td><td class=\"column-2\">fc_referrer<\/td><td class=\"column-3\"><strong>Longitude<\/strong><\/td><td class=\"column-4\">longitude<\/td>\n<\/tr>\n<tr class=\"row-12 even\">\n\t<td class=\"column-1\"><strong>First Click Source<\/strong><\/td><td class=\"column-2\">fc_source<\/td><td class=\"column-3\"><strong>Latitude<\/strong><\/td><td class=\"column-4\">latitude<\/td>\n<\/tr>\n<tr class=\"row-13 odd\">\n\t<td class=\"column-1\"><strong>First Click Term<\/strong><\/td><td class=\"column-2\">fc_term<\/td><td class=\"column-3\"><strong>Number of Website Visits<\/strong><\/td><td class=\"column-4\">page_visits<\/td>\n<\/tr>\n<tr class=\"row-14 even\">\n\t<td class=\"column-1\"><strong>First Click Timestamp<\/strong><\/td><td class=\"column-2\">fc_timestamp<\/td><td class=\"column-3\"><strong>Operating System<\/strong><\/td><td class=\"column-4\">OS<\/td>\n<\/tr>\n<tr class=\"row-15 odd\">\n\t<td class=\"column-1\"><strong>Google Analytics CID<\/strong><\/td><td class=\"column-2\">GA_Client_ID<\/td><td class=\"column-3\"><strong>Device<\/strong><\/td><td class=\"column-4\">device<\/td>\n<\/tr>\n<tr class=\"row-16 even\">\n\t<td class=\"column-1\"><strong>Google Analytics Measurement ID<\/strong><\/td><td class=\"column-2\">GA_Measurement_ID<\/td><td class=\"column-3\"><strong>Region<\/strong><\/td><td class=\"column-4\">region<\/td>\n<\/tr>\n<tr class=\"row-17 odd\">\n\t<td class=\"column-1\"><strong>Google Analytics Session ID<\/strong><\/td><td class=\"column-2\">GA_Session_ID<\/td><td class=\"column-3\"><strong>Pages Visited <\/strong><\/td><td class=\"column-4\">pages_visited_list<\/td>\n<\/tr>\n<tr class=\"row-18 even\">\n\t<td class=\"column-1\"><strong>Google Click Identifier<\/strong><\/td><td class=\"column-2\">gclid<\/td><td class=\"column-3\"><strong>Time Spent on Website <\/strong><\/td><td class=\"column-4\">time_passed<\/td>\n<\/tr>\n<tr class=\"row-19 odd\">\n\t<td class=\"column-1\"><strong>IP Address<\/strong><\/td><td class=\"column-2\">ip_address<\/td><td class=\"column-3\"><strong>Time Zone <\/strong><\/td><td class=\"column-4\">time_zone<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-6 from cache -->\n","protected":false},"excerpt":{"rendered":"<p>The instructions below apply to\u00a0Cookie-Based integration. If you are using\u00a0API-Based integration, please note that Jotform Forms does not support it. You will need to follow the Cookie-Based integration steps instead. Not sure which instructions to follow? Start here:\u00a0How to Check Which GA Connector Integration Type You\u2019re Using. Add Google Analytics data to Jotform with GA [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/3363"}],"collection":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/comments?post=3363"}],"version-history":[{"count":25,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/3363\/revisions"}],"predecessor-version":[{"id":3721,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/3363\/revisions\/3721"}],"wp:attachment":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/media?parent=3363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/categories?post=3363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/tags?post=3363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}