WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms: Google Analytics Addon
Where to Add GA Code for Ajax Form (2 posts)

  1. wireframe74
    Member
    Posted 2 months ago #

    HI I have had a client ask me to add tracking code to a few forms. One of these forms uses ajax. I installed your plugin and am just wondering where I should drop in my GA tracking code.

    I set the confirmation to a page and dropped the code into a template. As the form is usuing ajax should I use a text confirmation and should I simply add the tracking code to the text field within the settings area?

    Help appreciated

    https://wordpress.org/plugins/gravity-forms-google-analytics-addon/

  2. MikevHoenselaar
    Member
    Plugin Author

    Posted 1 month ago #

    GA tracking code you can use the JS script GA provides you and add that in your header.php.
    You can also use a GA plugin like Google Analytics by Yoast.

    The plugin we made only works if you already have an active GA script implemented.

    The text field needs a virtual url.
    Like /thank-you or /contact-page-thanks something like that.
    This is useful so you can measure Goals of your forms in GA.

Reply

You must log in to post.

About this Plugin

About this Topic