Tracking contact form submissions

Hi

Can I please ask for some help in how to track these contact form submissions? After submit a thank you message is displayed. In debug mode I can see this code after the form has been submitted. How should I set up the trigger?

{
  "event": "gtm.elementVisibility",
  "gtm.element": {},
  "gtm.elementClasses": "wpforms-confirmation-container-full wpforms-confirmation-scroll",
  "gtm.elementId": "wpforms-confirmation-5228",
  "gtm.elementTarget": "",
  "gtm.triggers": "35890858_10",
  "gtm.elementUrl": "",
  "gtm.visibleRatio": 100,
  "gtm.visibleTime": 0,
  "gtm.visibleFirstTime": 107,
  "gtm.visibleLastTime": 107,
  "gtm.uniqueEventId": 11
}
    

Hi @Martin_Murray,

Welcome to our community!
Looks like there might be an issue where your form structure doesn’t use formSubmit event listener which we are listening for when it comes to form submission trigger in our Tag Manager. You should consider pushing using such event or pushing other unique event as soon as the form is submitted and then based on first approach use form submission trigger in our Tag Manager or data layer trigger.