PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Adwords Conversion Tracking & Google Analytics Goal Code Placement

  1. I think many people will appreciate decisive answers for how to insert AdWords Conversion Tracking code and how to use virtual Google Analytics Goals, both without using redirected thank you pages.

    We found the conversion tracking settings here in this long post in the forum (http://www.gravityhelp.com/forums/topic/place-google-analytics-conversion-tracking-script-on-each-forms-thank-you).

    But we could not find where we can use the Virtual Google Analytics Goal code that everyone is using with Contact Forms 7:

    on_sent_ok: "_gaq.push(['_trackPageview', '/sidebar-contact-form-confirmation/']);"

    Thank you for your help!

    - Charles

    Posted 12 years ago on Saturday February 11, 2012 | Permalink
  2. Bump! No worries, I see your support queue is getting BLOWN UP!

    Posted 12 years ago on Monday February 13, 2012 | Permalink
  3. That Google Analytics conversion goal code should be able to be executed using a jQuery script block in the confirmation message of the form.

    You would edit your form, edit the form settings and select the Confirmation tab. Then you would need to place the script related to conversion in the confirmation message itself. It would then be executed when the confirmation message is displayed.

    See this screenshot:

    https://skitch.com/carlhancock/8b86k/edit-forms-gravity-forms-v1.6-wordpress

    If you aren't sure how to execute that Google Analytics code using a script block, this tutorial explains how to do it:

    http://blog.endpoint.com/2011/04/virtual-page-tracking-google-analytics.html

    When placing scripts like this in the confirmation message you must disable auto-formatting on the confirmation message. Otherwise the auto-formatting can cause problems with the script itself.

    Posted 12 years ago on Monday February 13, 2012 | Permalink

This topic has been resolved and has been closed to new replies.