Insert a tracking option

Insert a tracking option or a DOM event for tracking sent forms via Google Tag Manager.

Folks, our former Wishlist portal, where our users shared their requests and suggestions, was transferred to this forum. You’re most welcome to vote, add new ideas, and leave your comments here — we surely will consider them all! :star_struck:

Original Votes: 5

Great news, our devs found the solution!

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: