WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Donald
    Member
    Posted 5 months 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

    http://wordpress.org/plugins/contact-form-7/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.