{"id":13202,"date":"2024-03-20T15:20:14","date_gmt":"2024-03-20T14:20:14","guid":{"rendered":"https:\/\/helpcenter.blendee.com\/article\/how-to-track-form-submissions-using-gtm-and-ga4-ua\/"},"modified":"2024-03-20T15:20:14","modified_gmt":"2024-03-20T14:20:14","slug":"how-to-track-form-submissions-using-gtm-and-ga4-ua","status":"publish","type":"article","link":"https:\/\/helpcenter.streamwise.it\/en\/article\/how-to-track-form-submissions-using-gtm-and-ga4-ua\/","title":{"rendered":"How to track form submissions using GTM and GA4\/UA"},"content":{"rendered":"<p>Through Blendee it is possible to draw a submit of the form and then pass the data to Google Analytics, let&#8217;s see how to do it.<\/p>\n<p>Select the form you want to submit on by going to Website &gt; Forms.<\/p>\n<p>Locate the form and select Configure from the drop-down menu of the edit button.<\/p>\n<p>In the configuration, we are going to edit the reply message, by clicking on the html<img class=\"alignnone size-full wp-image-8130\" data-original=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.14.24.png\" alt=\"\" width=\"33\" height=\"28\"> editor button.<\/p>\n<p>In the html code we insert an id with any value inside an html tag of our choice, for example here we have inserted the id in the first p&gt; tag &lt;of the reply message.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8131 size-large\" src=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.15.17-1024x175.png\" alt=\"\" width=\"699\" height=\"119\" srcset=\"https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.15.17-1024x175.png 1024w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.15.17-300x51.png 300w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.15.17-768x131.png 768w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.15.17.png 1126w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/p>\n<p>Let&#8217;s go ahead and <strong>save<\/strong>.<\/p>\n<p>Let&#8217;s move on to <strong>Tag Manager<\/strong><\/p>\n<p>Let&#8217;s go to the <strong>site property<\/strong> , and <strong>create<\/strong> a new <strong>Trigger,<\/strong> of type <strong>Visibility of an element.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8132 aligncenter\" src=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.17.42-300x48.png\" alt=\"\" width=\"300\" height=\"48\" srcset=\"https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.17.42-300x48.png 300w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.17.42.png 398w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Let&#8217;s configure the trigger,<\/p>\n<p>The first thing to do is to choose the <strong>selection method, <\/strong> either by ID or CSS selector.<\/p>\n<p>We recommend using the ID as mentioned above.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8134 aligncenter\" src=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.19.11-300x89.png\" alt=\"\" width=\"300\" height=\"89\" srcset=\"https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.19.11-300x89.png 300w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.19.11.png 322w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>After selecting <strong>ID,<\/strong> we <strong>enter the id<\/strong> <strong>written<\/strong> <strong>first<\/strong> on the appropriate input (element ID), select the item<\/p>\n<p>&#8220;Whenever an item appears on the screen&#8221;, &#8220;Detect changes in the DOM&#8221;, and &#8220;All visibility events&#8221;.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8133 size-full\" src=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.18.09.png\" alt=\"\" width=\"574\" height=\"690\" srcset=\"https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.18.09.png 574w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.18.09-250x300.png 250w\" sizes=\"(max-width: 574px) 100vw, 574px\" \/><\/p>\n<p>Once the trigger is configured, let&#8217;s move to the <strong>TAGS <\/strong>section and create a new one.<\/p>\n<p><strong>TAGS WITH GA4:<\/strong><\/p>\n<p>Let&#8217;s select the GA4 event tag:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8135 aligncenter\" src=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.24.24-300x40.png\" alt=\"\" width=\"300\" height=\"40\" srcset=\"https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.24.24-300x40.png 300w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.24.24.png 371w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>In the configuration we set the GA4 configuration tag<\/p>\n<p>Next you need to enter the name of the event, GA4 has the names of the events already set up and listed online on this official Google <a href=\"https:\/\/support.google.com\/analytics\/answer\/9267735\">guide<\/a> .<\/p>\n<p>Here we will find the whole list of custom events that can be tracked via GA4 and GTM.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8136 size-full\" src=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.24.46.png\" alt=\"\" width=\"876\" height=\"404\" srcset=\"https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.24.46.png 876w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.24.46-300x138.png 300w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.24.46-768x354.png 768w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/06\/Schermata-2022-06-23-alle-16.24.46-730x338.png 730w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><\/p>\n<p>Later you can also enter the parameters of the events, <strong>it is not mandatory,<\/strong> but you can do it to recognize where the submit comes from.<\/p>\n<p>In fact, through the <strong>Page Url<\/strong> parameter and the value <strong>{{Page Url}}<\/strong> it is possible to pass the url of where the submission was made.<\/p>\n<p>Using the <strong>lead_type<\/strong> parameter, we enter the name of the form as the value.<\/p>\n<p>Finally, set as <strong>Activation,<\/strong> the previously created trigger of type <strong>Visibility of an element.<\/strong><\/p>\n<p>At this point, all that remains is to create <strong>the goal<\/strong> on <strong>Google Analytics<\/strong>, using the classic GA4\/UA <strong>procedure<\/strong> and enter the same <strong>parameters<\/strong> entered.<\/p>\n<p>So every time someone sees the <strong>reply message<\/strong>, and then <strong>submits<\/strong>, the <strong>tracking<\/strong> will be sent and <strong>counted<\/strong>.<\/p>\n<div class=\"wrap-post-useful post_useful_13202\">\n<p><div style=\"color: black; margin-bottom: 15px;\"><strong>Was this content useful?<\/strong><\/div><\/p>\n<p class=\"post_useful_success post_useful_success_13202\">Thanks for contributing!<\/p>\n<div class=\"post-useful-buttons post_useful_buttons_13202\">\n<a href=\"javascript:;\" style=\"border:0px;\" title=\"Yes\" class=\"post-useful-vote post-useful-vote-yes\" data-id=\"13202\" data-rate=\"1\">Yes<\/a>\n<a href=\"javascript:;\" style=\"border:0px;\" title=\"No\" class=\"post-useful-vote post-useful-vote-no\" data-id=\"13202\" data-rate=\"0\">No<\/a>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Through Blendee it is possible to draw a submit of the form and then pass the data to Google Analytics, let&#8217;s see how to do it. Select the form you want to submit on by going to Website &gt; Forms. Locate the form and select Configure from the drop-down menu of the edit button. In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"template":"","format":"standard","article-category":[578,603],"article-tag":[175,604,605],"class_list":["post-13202","article","type-article","status-publish","format-standard","hentry","article-category-analytics-en","article-category-web-site-forms-en","article-tag-analytics-en","article-tag-form-en","article-tag-tracking"],"_links":{"self":[{"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article\/13202"}],"collection":[{"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":0,"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article\/13202\/revisions"}],"wp:attachment":[{"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/media?parent=13202"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article-category?post=13202"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article-tag?post=13202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}