وردپرس
Is ‘skip_mail:on’ supposed to affect the ‘wpcf7mailsent’ listener?
[ad_1]
Replies: 0
I have a custom javascript with the wpcf7mailsent
event listener added to the website:
document.addEventListener( 'wpcf7mailsent', function( event ) {
dataLayer.push({
'event' : 'cf7successfulsubmit',
'CF7formID' : event.detail.contactFormId
});
}, false );
I have also added skip_mail:on
on the Additional Settings tab on my contact form. This prevents sending emails from the website.
However, it looks like the skip_mail
setting doesn’t seem to have an effect on the wpcf7mailsent
event listener. I can see the events still being tracked on Google Analytics despite the mails being skipped.
Is this an expected behaviour? Just wanted to confirm.
[ad_2]
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس