Quick Search

stone-edg_profile

No Comments Yet.

Leave a comment

You must be Logged in to post a comment.

// This code notifies Google Tag Manager when a wpForm is submitted document.addEventListener("DOMContentLoaded", function() { var elementsArray = document.querySelectorAll('[id^="wpforms-form-"]'); elementsArray.forEach(function(elem) { elem.addEventListener("submit", function(e) { window.dataLayer = window.dataLayer || []; window.dataLayer.push({ event: "wpFormSubmit", wpFormElement: event.target }); }); }); });