Analytics on forms submitted

Welcome to the Community @Stephanie_Neely :wave:

Great news, we’ve found a solution for your case!

To check if the form has been successfully submitted, you need to follow these steps

  1. Install GTM on your website
  2. Install the widget on your website
  3. Add this code to the Custom JS field on the Settings tab of your widget’s settings
widget.on("submit", () => {
  dataLayer?.push({'event': 'elfsight-form-submit'});
});
  1. In GTM, you should create a Custom Event trigger

Now, after the form is submitted, the trigger should get activated.

Please check it out and let me know if it worked for you :slightly_smiling_face: