Contact Form 7
Redirecting to Thank You Page (4 posts)

  1. Beyondus
    Posted 5 years ago #

    Our goal is to track users that have filled out the form using our google analytics. In the past that was done by tracking the number of visits to a form's thank you page.

    Since Contact Form 7 doesn't redirect, or at least at its default state, I was wondering if people know of a way to redirect to a thank you page or way to use analytics to track form submissions.


  2. Takayuki Miyoshi
    Plugin Author

    Posted 5 years ago #

    See Tracking Form Submissions with Google Analytics

    Note: The sample javascript code for GA page tracking is not up-to-date. See also docs on GA help.

  3. djohnson515
    Posted 5 years ago #

    Does anyone know how to run google website optimizer with contact form 7? I need to supply a conversion url for an A/B split test, and Im not sure what URL to give it

  4. Agnes
    Posted 4 years ago #

    I have found a method to get Google Analytics track contact form result as an objective:

    - I ve set an objective in GA for the URL "/enquiries-bookings/successfully-sent"

    - Then in Contact Form 7 settings page, I have added this at te end of the message for "# Sender's message was sent successfully":
    <script type="text/javascript">_gaq.push(['_trackPageview', '/enquiries-bookings/successfully-sent']);</script>

    And that simulates loading the above page, that counts as a goal under Google Analytics

    However, now I want to do a A/B testing using Google Website Optimized and I am not sure this method will work, or I should need a real "thank you" page to be tracked.
    Is it possible to add some kind of redirect javascript function the same way, redirecting to another page?
    Any experience welcome!

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