var wpcf7Elm = document.querySelector( '.wpcf7' ); wpcf7Elm.addEventListener( 'wpcf7submit', function( event ) { __gaTracker('send', 'event', 'form', 'skicka', 'knapp');" }, false );