Support » Plugin: Gravity Forms: Google Analytics Addon » Where to Add GA Code for Ajax Form

  • Resolved wireframe74


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MikevHoenselaar


    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.

    Plugin Author MikevHoenselaar


    Hopefully everything is clear now :).
    But I think it is since its has been 2 months since 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where to Add GA Code for Ajax Form’ is closed to new replies.