Viewing 9 replies - 1 through 9 (of 9 total)
  • Here you go:

    Redirecting to Another URL After Submissions
    https://contactform7.com/blog/2010/03/27/redirecting-to-another-url-after-submissions/

    Also found this – might be relevant though not quite what you’re looking for.

    Tracking Form Submissions with Google Analytics
    https://contactform7.com/blog/2009/11/24/tracking-form-submissions-with-google-analytics/

    citydan

    (@citydan)

    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?

    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.

    This did not work

    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='https://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.

    ncompass–

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

    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.

    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:

    https://www.compse.com/forum/website-design-forum/redirect-to-a-thank-you-page-with-wordpress-contact-form-7/

    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.

    Shawn
    [sig moderated as per the Forum Rules]

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Contact Form 7] google adwords conversion code and contact form 7’ is closed to new replies.