WordPress Contact Form 7 Redirect To Thank You Page

WordPress 3.1

If you are using WordPress Contact Form 7, you might want to redirect visitors to a thank you page when they successfully fill in your form. Ideal if you track completed goals in Google Analytics.

How To Redirect Visitors To A “Thank You” Page In Contact 7 for WordPress:

Go To WordPress dashboard and go to Contact Form 7 plugin settings page (click contact in your dashboard).  Find ‘Additional Settings’ at bottom of your form page and insert the following code:

on_sent_ok: "location.replace('http://www.yourwebsiteaddress.co.uk/thankyou/');"

Save form

Now visitors will be successfully redirected to your custom thank you page when they fill in your WordPress Contact 7 form.

* Rel:Noindex/Follow your  “thank you” page to keep it out of Google SERPS using a Robots Meta tag.


  1. The Best WordPress SEO Plugin
  2. Advice – Nofollow Blog Comments
  3. Do WordPress Self Pings Waste Pagerank?
  4. Host WordPress blog in a subdomain or directory?
  5. How To Exclude A Category or Post From RSS Feed in WordPress
  6. List Recent Posts From Single Category on Posts Within Same Category
  7. Add Text To Home Page Only on WordPress Blog
  8. WordPress Contact Form 7 Redirect To Thank You Page
  9. Speed Up Contact Form 7 Plugin For WordPress
  10. Dynamic PHP Copyright Notice in WordPress
  11. How To Import Large WordPress XML File Above Default Limit Size

Learn how you can get more sales from your website

Subscribe for free and let us share with you:

  • how to submit your site to Google, Yahoo & Bing
  • how to optimise your site to get more traffic from Google
  • how to target the most valuable keywords for your business
  • how to make your site rank better in free Google listings
  • how to rank high & avoid Google penalties in 2015

Trust Hobo with your SEO plan

SEO Audit