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

  • dancappdesign


    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.

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

    Thanks in advance for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Track Successful Form Submissions Only’ is closed to new replies.