• I have 2 different contact form 7 in one page.

    I want to tracking the single submission of the form because in Google Analytics i have 2 different conversion goal.

    The code i’ve used is this:

    
    <script>
     document.addEventListener( 'wpcf7mailsent', function( event ) {
     ga('send', 'event', 'Form contatto', 'submit', 'lead contatto diretto');
     }, false );
     document.addEventListener( 'wpcf7mailsent', function( event ) {
    ga('send', 'event', 'Form contatto', 'submit', 'lead generation landing');
    }, false );
    </script>
    

    But in analytics the goal being tracked doubles.

    How i can specify for each form, the right event to send to GA?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Google Analytics tracking 2 different contact form 7 in a singular page with DOM’ is closed to new replies.