• I want to track conversion when a form (created with WPforms) is sent.

    If I was using Contact 7 forms the code would be:
    <script>
    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    gtag(‘event’, ‘conversion’, {‘send_to’: ‘TRACKING-CODE-HERE’});
    }, false );
    </script>

    BUT, for design reasons, I want to use WPforms.

    Can support please advise what should I use to replace ‘wpcf7mailsent’ ?

    Thanks heaps
    Mike

Viewing 1 replies (of 1 total)
  • Plugin Support Ethan Choi

    (@ethanchoi)

    Hi majority,

    I apologize as we’re not able to provide support for the custom coding required for Google Analytics.

    Instead, we recommend using our sister product MonsterInsights with its form addon. This addon would require the Pro version of MonsterInsights. In case it helps, we have a walkthrough for this approach.

    It’s possible to use custom code, as well, and typically this would involve adding tracking code to a confirmation message/page — however this is not something we’re able to provide support for at this time.

    If you’ve any other questions, please feel free to reach out.

    Thanks ??

Viewing 1 replies (of 1 total)
  • The topic ‘Event Listener code’ is closed to new replies.