Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

andrelost on "[Plugin: Contact Form 7] on_sent_ok Not Working"

$
0
0

Hello everybody,

I haven't found any solution to this (I think) bug so I decided to create this javascript that runs a _gaq.push when the "mail-sent-ok" message is shown into the page:

<script type="text/javascript">
    $(document).ready(function(){
        if($('.wpcf7 form div').hasClass('wpcf7-mail-sent-ok')){
_gaq.push(['_trackPageview','/destination_tracking_page_url']);
        }
    });
</script>

I hope this will help you.


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>