[closed] Contact Form 7 AdWords conversion tracking (6 posts)

  1. katehalle
    Posted 3 years ago #

    Here are some steps I've used to set up AdWords conversion tracking for Contact Form 7. This assumes you are already using the Contact Form 7 plugin.

    Step 1

    Install WordPress AdWords tracking code plugin:


    Step 2

    Create a new page for thankyou/confirmation in the WordPress dashboard:

    Pages> add new

    Insert AdWords conversion tracking code to the Google AdWords Tracking Code box that appears in the new page in 'edit' view.

    Publish the new thank you page created and note down URL.

    Step 3

    Go to Plugin>Contact Form 7>Settings

    Select 'edit' under the contact form in use

    Scroll down to find the 'Additional settings' box and paste in this code using the new URL for the thank you page just created:

    add code: on_sent_ok: "location.replace('http://www.yourdomain/thankyou');"

    Save the update

  2. Sevenhelmets
    Posted 3 years ago #

    Worked beautifully....was exactly what I was looking for. Thank you for taking the time to write this, and lay it out in such an easy to follow manner!

  3. hilaryOSS
    Posted 3 years ago #

    Thank you for posting this also. Made it very simple for me to add the conversion tracking to a new page for my contact form 7!

  4. biankahajdu
    Posted 2 years ago #

    Thank you for sharing this solution!

  5. cursovilabrasil
    Posted 2 years ago #

    Thank you!!

  6. kkelleher1
    Posted 2 years ago #

    Hi - I stumbled across this but it is exactly what I am looking for.
    It didn't work though so I don't know what I am doing wrong. Does this only work with a specific theme? As I have never seen a "Google AdWords Tracking Code box that appears in the new page in 'edit' view."
    Do you just mean the text view on a new page as opposed to the visual view? There is no where I can see to put the code.

    In addition to that when I submit the form on the front end I am just getting the message saying thanks and not getting redirected to the thank you page I created.

    Any help would be appreciated!


Topic Closed

This topic has been closed to new replies.

About this Topic