Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Don´t track a specific form

$
0
0

Replies: 0

I´m using severeal contact forms on my website and I integrated the script

<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
    ga('send', 'event', 'Contact Form', 'submit');
}, false );
</script>

to track their submisson with GA.

This works fine, but is there a possibilty to exclude a certain form?

I know that I could use if-else in the header-section to exclude certain pages, but this won´t work, as it could be that there are two forms on one page and one should be tracked, but not the other?

Thx!


Viewing all articles
Browse latest Browse all 67836

Trending Articles