Contact Form 7
on_sent_ok: How to deploy 2 actions? (page redirect+ google Event) (1 post)

  1. Donald
    Posted 2 years ago #

    Hi all,

    I am just wondering how to use the on_sent_ok: to esecute 2 actions:

    -First action: Redirect the user to a thank you page
    -Second action: To trig the Google Analytics event.

    Above actions needs to be deployed both.

    I tried with the following Code but it doesn't work. I mean, it works the redirection but then it doesn't work with Analytics:
    on_sent_ok: "location = 'http://www.website.xyz/thanks'; _gaq.push(['_trackEvent', 'Contact Form', 'Submit', 'Sidebar Form','true']);"

    Any suggestions are welcome. Thanks


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.