Snippet code for Events on Google Analytics 4
-
Hi, i was trying to use a snippet code so when a contact form is sent, google analytics 4 notices and mark as a conversión (event detected), i try this one but it isn’t working:
<script> document.addEventListener( 'wpcf7submit', function( event ) { gtag('event', 'formularios_recibidos', {'event_name' : 'formulario'}); }, false ); </script>
Any idea? Any other snippet?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Snippet code for Events on Google Analytics 4’ is closed to new replies.