{"id":2765,"date":"2021-04-09T08:55:31","date_gmt":"2021-04-09T08:55:31","guid":{"rendered":"https:\/\/gaconnector.com\/docs\/?p=2765"},"modified":"2026-04-20T17:58:09","modified_gmt":"2026-04-20T17:58:09","slug":"integrate-ga-connector-typeform","status":"publish","type":"post","link":"https:\/\/gaconnector.com\/docs\/integrate-ga-connector-typeform\/","title":{"rendered":"How to integrate GA Connector with Typeform"},"content":{"rendered":"<h4><em>Add Google Analytics data to Typeform with GA Connector\u2019s Typeform integration.<\/em><\/h4>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Installed either the GA Connector\u00a0<a href=\"https:\/\/gaconnector.com\/download\/wordpress\/\">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>Add Hidden Fields to your Typeform<\/h2>\n<ol>\n<li>Open your typeform from your workspace and click <strong>Logic<\/strong> on the right panel. Select <strong>Personalize with data <\/strong>then click on\u00a0<strong>Hidden Fields.<br \/>\n<\/strong><br \/>\n\u00a0\u00a0<img decoding=\"async\" class=\"alignnone size-full wp-image-3002\" src=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-logic.jpg\" alt=\"\" width=\"316\" height=\"434\" srcset=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-logic.jpg 316w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-logic-218x300.jpg 218w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-logic-44x60.jpg 44w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-logic-109x150.jpg 109w\" sizes=\"(max-width: 316px) 100vw, 316px\" \/><br \/>\n<em>This will open a pop-up where you can type and add Hidden Fields<\/em><\/li>\n<li>You&#8217;ll need to add the ID of the GA Connector field that you want to track and press enter. (E.g. If you want to track <em>Last Click Source,<\/em> you need to input <em>lc_source<\/em>). For the full list of GA Connector fields that you can track and their respective IDs, refer to the table below.<br \/>\n<img decoding=\"async\" class=\"alignnone size-large wp-image-3001\" src=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-hidden-fields-700x487.jpg\" alt=\"\" width=\"700\" height=\"487\" srcset=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-hidden-fields-700x487.jpg 700w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-hidden-fields-300x209.jpg 300w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-hidden-fields-768x534.jpg 768w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-hidden-fields-60x42.jpg 60w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-hidden-fields-150x104.jpg 150w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-hidden-fields.jpg 1050w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><br \/>\nGA Connector adds UTM information, geolocation, referral information to your Typeform leads.<br \/>\nSee below for all the information that you can add to your leads to help you find out which of your marketing activities drive sales.<br \/>\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 --><br \/>\n<em><em><strong>Note:<\/strong> You can add all of these fields or choose only what you need.<br \/>\n<\/em><\/em><br \/>\nFor more information regarding adding hidden fields on Typeform, please see <a title=\"\" href=\"https:\/\/www.typeform.com\/help\/a\/using-hidden-fields-360052676612\/\" target=\"_blank\" rel=\"noopener noreferrer\">this article<\/a>.\n<\/li>\n<\/ol>\n<h2>Embedding your Typeform to your website<\/h2>\n<ol>\n<li>Get your latest embed code from Typeform and paste it on your website but <strong>omit the &lt;script&gt;&#8230; part of the code<\/strong>. Make sure that your code ends on the closing &lt;\/div&gt;<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-3000\" src=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-embedcode.jpg\" alt=\"\" width=\"543\" height=\"449\" srcset=\"https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-embedcode.jpg 543w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-embedcode-300x248.jpg 300w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-embedcode-60x50.jpg 60w, https:\/\/gaconnector.com\/docs\/wp-content\/uploads\/2021\/04\/typeform-embedcode-150x124.jpg 150w\" sizes=\"(max-width: 543px) 100vw, 543px\" \/><\/li>\n<li>Right after your embed code <strong>(without the &lt;script&gt; part)<\/strong>, add the code below<\/li>\n<\/ol>\n<pre class=\"lang:default decode:true\">&lt;script&gt;window.addEventListener(\"DOMContentLoaded\",t=&gt;{var e,n=0,o=document.querySelectorAll(\"[data-tf-widget]\");\r\nfunction d(){for(i=0;i&lt;o.length;++i){var t=o[i].dataset.tfHidden?o[i].dataset.tfHidden.split(\",\"):[],n=[];for(var d in e)-1!==t.indexOf(d+\"=\")?t[t.indexOf(d+\"=\")]=d+\"=\"+e[d]:n.push(d+\"=\"+e[d]);\r\nvar c=[...n,...t];o[i].dataset.tfHidden=c.toString()}r()}function r(){let t=document.createElement(\"script\");t.src=\"\/\/embed.typeform.com\/next\/embed.js\",document.body.appendChild(t)}function c(){try{if(e=gaconnector.getCookieValues(),\"function\"!=typeof ga)return!!e.lc_source;\r\nif(\"function\"==typeof ga.getAll)return!!e.lc_source&amp;&amp;ga.getAll()[0].get(\"clientId\")}catch(t){console.log(\"GA Connector script not found\")}}var f=setInterval(function(){c()?(d(),clearInterval(f)):n&gt;5&amp;&amp;(r(),clearInterval(f)),n++},100)});\r\n&lt;\/script&gt;<\/pre>\n<p><strong><br \/>\nNote:\u00a0<\/strong>If you have multiple Typeforms on one page, you can just place this code right after your last form. No need to repeat.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add Google Analytics data to Typeform with GA Connector\u2019s Typeform integration. Prerequisites Installed either the GA Connector\u00a0WordPress plugin\u00a0or GA Connector script on your website: Add Hidden Fields to your Typeform Open your typeform from your workspace and click Logic on the right panel. Select Personalize with data then click on\u00a0Hidden Fields. \u00a0\u00a0 This will open [&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,16],"tags":[],"_links":{"self":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/2765"}],"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=2765"}],"version-history":[{"count":25,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/2765\/revisions"}],"predecessor-version":[{"id":3780,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/posts\/2765\/revisions\/3780"}],"wp:attachment":[{"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/media?parent=2765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/categories?post=2765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gaconnector.com\/docs\/wp-json\/wp\/v2\/tags?post=2765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}