• Resolved netconsulting

    (@netconsulting)


    Hi there,

    Great plugin. We are trying to track the Contact Form 7 forms that are correctly sent.

    With the original Pixel Code we track it like this:

    <script type="text/javascript">
    	document.addEventListener( 'wpcf7mailsent', function( event ) {
    		fbq('track', 'Lead');
    	}, false );
    </script>

    We have noticed that you don’t use the function fbq so that this code is not working with your plugin.

    Which would be the equivalent to fbq('track', 'Lead'); with your plugin?

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author PixelYourSite

    (@pixelyoursite)

    Hi,

    There are two possibilities here:

    1. If you redirect users on a special page after the form is completed you can set up an event that will load on that particular URL. That can be easily accomplished from our Events tab.

    2. If the users stay on the same page, it’s a bit tricky and can’t be done with the free version. With the pro plugin, you configure an event to fire when the form button is clicked.

    The piece of code that you have in your post can’t be used with our plugin.

    Sorry for not being of more help here. If you’re interested in our pro version, give me a message on our website support, and I’ll send you a discount code: https://www.pixelyoursite.com/contact

    Thread Starter netconsulting

    (@netconsulting)

    Hi there,

    We don’t redirect the user to a special page that’s why we use the code to track the lead when the form is submitted succesfully. And that’s the point: We don’t track the click on the SEND button, we track only when after clicking the SEND button the form is sent successfully (wpcf7mailsent).

    And as it seems this can’t be done with your plugin in the free or the PRO version.

    We will look for an alternative.

    Thanks for your help.

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can we track Contact Form 7 forms?’ is closed to new replies.