Title: JS format
Last modified: April 1, 2019

---

# JS format

 *  Resolved [funsail](https://wordpress.org/support/users/funsail/)
 * (@funsail)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/js-format/)
 * What’s the correct JS format? This doesn’t work
 * ga(‘gaTracker.send’, ‘event’, ‘ContactForm’, ‘Send’);
    fbq(‘track’, ‘Lead’, {
   content_name: ‘ContactForm’, content_category: ‘One’});

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [Yuval](https://wordpress.org/support/users/yuvalsabar/)
 * (@yuvalsabar)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/js-format/#post-11378436)
 * Hi [@funsail](https://wordpress.org/support/users/funsail/),
 * This is beyond the scope of our support, since it is not directly related to 
   the plugin.
    You can check [this link](https://contactform7.com/tracking-form-submissions-with-google-analytics/),
   see if it helps you, or consult other forums, such as [stackoverflow](https://stackoverflow.com/).
 * Yuval.
 *  Thread Starter [funsail](https://wordpress.org/support/users/funsail/)
 * (@funsail)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/js-format/#post-11378806)
 * I’m my asking you to support js.
    That is the exact js code I used to use in 
   the old version on send. So that’s why i am wondering why doesn’t work in it 
   also stops the location function from working . Because it is valid js unless
   the something different about the way you run it
 *  Plugin Contributor [Yuval](https://wordpress.org/support/users/yuvalsabar/)
 * (@yuvalsabar)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/js-format/#post-11378909)
 * Hi [@funsail](https://wordpress.org/support/users/funsail/),
 * I understand. We didn’t changed this code since it was first introduced, so it’s
   must be something else.
 *  Thread Starter [funsail](https://wordpress.org/support/users/funsail/)
 * (@funsail)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/js-format/#post-11381656)
 * Just to confirm, If it doesn’t redirect it means the js is wrong
 * I put in js
 * `alert('sent ok1');`
 * It pops up as expected. It doesn’t redirect. What does that mean?
 *  Plugin Contributor [Yuval](https://wordpress.org/support/users/yuvalsabar/)
 * (@yuvalsabar)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/js-format/#post-11381772)
 * Please check: [https://wordpress.org/support/topic/please-read-before-asking/](https://wordpress.org/support/topic/please-read-before-asking/)
   
   Also, after you check, let us know the results, and provide a link you your site.
 *  Thread Starter [funsail](https://wordpress.org/support/users/funsail/)
 * (@funsail)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/js-format/#post-11381860)
 * Oh I found out why. It’s dependent on the user browser. I understand it now, 
   if the JS crashes the redirect fails.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘JS format’ is closed to new replies.

 * ![](https://ps.w.org/wpcf7-redirect/assets/icon-256x256.gif?rev=3416723)
 * [Redirection for Contact Form 7](https://wordpress.org/plugins/wpcf7-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpcf7-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpcf7-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/wpcf7-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpcf7-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpcf7-redirect/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [funsail](https://wordpress.org/support/users/funsail/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/js-format/#post-11381860)
 * Status: resolved