Tracking Form, Google Analytics not working after it works
-
A few days a go i insert in to the themes function.php this code:
add_action( 'wp_footer', 'mycustom_wp_footer' ); function mycustom_wp_footer() { ?> <script type="text/javascript"> document.addEventListener( 'wpcf7mailsent', function( event ) { if ( '8385' == event.detail.contactFormId ) { ga( 'send', 'event', 'SEO Linkbuilding adviesrapport', 'submit' ); } }, false ); </script> <?php }
This code is from the WP environment:
[contact-form-7 id="8385" title="Aanvraagformulier SEO & Linkbuilding adviesrapport"]
The first days the tracking was working and after update the theme yesterday it is not working. Only i do not understand and place the code only back into functions.php off the theme.I have contact with the people of the theme and the have no idea !!!
The page with the form
- This topic was modified 7 years ago by .
- This topic was modified 7 years ago by .
- This topic was modified 7 years ago by .
- This topic was modified 7 years ago by .
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Tracking Form, Google Analytics not working after it works’ is closed to new replies.