contact form 7 gtm event
document.addEventListener('wpcf7mailsent',function(event){ window.dataLayer.push({ "event":"form_sent", "formId":event.detail.contactFormId, "response":event.detail.inputs }); console.log("form_sent"); });
document.addEventListener('wpcf7mailsent',function(event){ window.dataLayer.push({ "event":"form_sent", "formId":event.detail.contactFormId, "response":event.detail.inputs }); console.log("form_sent"); });