Home › Forums › Quform WordPress › Google Analytics Event
I am trying to use the code in Thank you message, but it is not working (Not sent confirmation).
Can this be done by adding code to functions.php?
Like this for Contact Form 7:
add_action( ‘wp_footer’, ‘mycustom_wp_footer’ );
function mycustom_wp_footer() { ?> <script type=”text/javascript”> document.addEventListener( ‘wpcf7mailsent’, function( event ) { ga( ‘send’, ‘event’, ‘Contact Form’, ‘submit’ ); }, false ); </script> <?php }
It would be great if i could just replace “wpcf7mailsent” with Qufomr’s code.
Thank you in advance.
Best regards, Ivan
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.