Support » Plugin: WP Google Analytics Events » Track Successful Form Submissions Only

  • I’m attempting to use this in conjunction with Contact Form 7, but I want to track only successful form submissions. Is this possible? It is possible to do this simply by placing the following script in the header, but that doesn’t allow me to use the unique click tracking of this plugin.

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

    Thanks in advance for any help.
    Dan

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.