Generic Event<\/a>.<\/p>\n\n\n\nTo use this event listener, create a new Custom HTML tag in GTM and paste in the code below. This tag should be triggered on all pages.<\/p>\n\n\n\n
<script>\njQuery(document).ready(function($) {\n $(document).on('submit_success', function(evt) {\n dataLayer.push({\n 'event': 'form_submission',\n 'form_name': evt.target.name,\n });\n });\n});\n<\/script><\/code><\/pre>\n\n\n\nKudos to Kova for contributing to this improved snippet.<\/strong><\/p>\n\n\n\n\nPro tip:<\/strong> Since this tracking is an inherent part of the site, in many cases I would prefer adding it directly to the site’s header\/footer instead of working via GTM<\/p>\n<\/blockquote>\n\n\n\nIf you want to use this trigger for additional platforms beyond Google Analytics, you can simply create a Trigger that captures only form submissions.<\/p>\n\n\n\n
Triggering other platforms<\/h3>\n\n\n\n If you want to use this trigger for additional platforms beyond Google Analytics, you can simply create a Trigger that captures only form submissions.<\/p>\n\n\n\n
Navigate to the Triggers section and create a new trigger. Select the Trigger Type ‘Custom Event’ and set the Event Name to ‘form_submission’.<\/p>\n\n\n\n <\/figure>\n\n\n\nThis trigger can now be used to trigger conversion pixels, e.g Facebook or LinkedIn Leads.<\/p>\n\n\n
\n
Facebook Lead event with form_submission<\/em> trigger<\/figcaption><\/figure><\/div>","protected":false},"excerpt":{"rendered":"I’m a big fan of WordPress and Elementor. Combined, these two pack a punch far superior to other CMSs and page builders I’ve worked with. And with over 5M active installations of Elementor (as of May 2020), I often see this combination on clients’ sites. When creating a measurement plan for an Elementor site, you […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[43,200],"class_list":["post-4280","post","type-post","status-publish","format-standard","hentry","category-google-tag-manager","tag-elementor","tag-forms"],"_links":{"self":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4280","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/comments?post=4280"}],"version-history":[{"count":12,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4280\/revisions"}],"predecessor-version":[{"id":6118,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4280\/revisions\/6118"}],"wp:attachment":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/media?parent=4280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/categories?post=4280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/tags?post=4280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}