document.addEventListener( 'wpcf7mailsent', function( event ) { location = 'https://caravian.com.mx/gracias/'; }, false );