• Hello I having a problem with tracking multiple forms with the DOM events.
    I have 2 contact forms on my site and I would like to know how to track them separately. Currently, Form A is on all the pages of the site except 1 page. And that 1 page is using Form B. How do I track them separately?

    I used different categories, action and label names. How do I track this?

    <script>
    var wpcf7Elm = document.querySelector( ‘div#wpcf7-f55112-p55113-o1’ );
    wpcf7Elm.addEventListener( ‘wpcf7mailsent’, function( event ) {
    ga(‘send’, ‘event’, ‘Ruby’, ‘submitted’, ‘Ruby’);
    }, false );
    </script>

    This is the script I used for Form B.

  • The topic ‘Analytics tracking multiple forms’ is closed to new replies.