Google Analytics Event

Home Forums Quform WordPress Google Analytics Event

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23587
    prvidojam
    Participant

    I am trying to use the code in Thank you message, but it is not working (Not sent confirmation).

    Can this be done by adding code to functions.php?

    Like this for Contact Form 7:

    add_action( ‘wp_footer’, ‘mycustom_wp_footer’ );

    function mycustom_wp_footer() {
    ?>
    <script type=”text/javascript”>
    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    ga( ‘send’, ‘event’, ‘Contact Form’, ‘submit’ );
    }, false );
    </script>
    <?php
    }

    It would be great if i could just replace “wpcf7mailsent” with Qufomr’s code.

    Thank you in advance.

    Best regards,
    Ivan

    #23642
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy