Google analytics not finding my form
-
Below is in my header.php code for Google Analytics. I want to track the email sent button on my contact form 7. Its not showing up. I think I’ve checked every single forum I could find and am not sure what to do from here. I’m also trying to track a newsletter sign up plugin (you’ll notice that here too) PLEASE HELP! I’m at my wit’s end! – Melissa
<head>
<script>
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’https://www.google-analytics.com/analytics.js’,’ga’);ga(‘create’, ‘UA-96545011-1’, ‘auto’);
ga(‘send’, ‘pageview’);</script>
<!– Google Analytics –>
<script>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
ga(‘send’, ‘event’, ‘Contact Form’, ‘Click’);
}, false );
</script><script>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
ga(‘send’, ‘event’, ‘Newsletter’, ‘Click’);
}, false );
</script><?php wp_head(); ?>
</head>
- The topic ‘Google analytics not finding my form’ is closed to new replies.