Contact Form 7
google adwords conversion code and contact form 7 (10 posts)

  1. creadorwebcr
    Posted 4 years ago #

    Hello, I use contact form 7 in my page at http://www.dentalcosmeticscr.com/contact-us.html

    How could I Install the google adwords conversion code for pay per clik using your plugin contact form 7 since it does not redirect to a thank you page,

    I mean, may I edit the plugin?

    Please contact me at [email removed]
    Eng. bernardo Escobar

    I am using the last available wordpress version...


  2. Here you go:

    Redirecting to Another URL After Submissions

  3. Also found this - might be relevant though not quite what you're looking for.

    Tracking Form Submissions with Google Analytics

  4. citydan
    Posted 4 years ago #

    Can you explain how to do this? The page you link to just says:
    "let’s say that the name of your page tracker object is pageTracker" and then describes how to make on_sent_ok call teh pageTracker function.
    on_sent_ok: "pageTracker._trackPageview('/mysite/thank-you.html');"

    But what does it mean "your page tracker object is pageTracker". Where would we set/put this? What does it mean?

  5. ncompass
    Posted 4 years ago #

    I have added the Google ADWORDS Conversion Code to the "# Sender's message was sent successfully' field... I'm testing, but I do not see why this would not work.

  6. ncompass
    Posted 4 years ago #

    This did not work

  7. ncompass
    Posted 4 years ago #

    OKay back to basics... here is what I did to make Google Adwords Conversion Code work and track properly.

    Step 1) I created a new HTML file it only contained the Tracking code inside some html tags

    <html>full Adwords Conversion code here</html>

    Step 2) In the Senders Success Message box I added

    <iframe src='http://www.domain.co.uk/folder/file.html' width='1' height='1' frameborder='no'></iframe>

    Thus when the AJAX form called the hidden div it will also also call the iFrame and therefore the Tracking Code.

    I really hope that this time I will have got this right comments welcome.

  8. dbaron
    Posted 4 years ago #


    Thanks for the post. Did this method work for you?

  9. ncompass
    Posted 4 years ago #

    Yes this does work for me... I get conversions in Adwords.

    Let me be clear though - I had created a simple file (outside of WordPress) containing the Adwords & Analytics code which I referenced in the iFrame.

    I can see that I have lots of pages views of the iFrame content in Analytics (it matches the total number of enquiries). I can also see only some of them came from Adwords.

    In my opinion this works, but I'd like other to back me up.

  10. compse
    Posted 4 years ago #

    I made a tutorial on how to make contact form 7 go to a thank you page once a user submits a message. Here it is:


    Once you have done that just put Googles conversion code right into the html side of your WordPress thank you page.

    I hope this helps.

    [sig moderated as per the Forum Rules]

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