where in the source code do I put google analytics tracking?

  • Profile Image
    nywebdev
    Asked on November 09, 2012 at 02:12 PM

    I am trying to test 3 different form flows and have my site randomly 1 of 3 different forms every time it loads. Where in the source code do I add seperate google analytics tracking to each form?

  • Profile Image
    fxr
    Answered on November 09, 2012 at 03:22 PM

    Are the forms being embedded onto exactly the same web page or 3 different ones? 

    If its 3 different ones, I would just put the analytics code on the actual webpage(s) hosting the forms. 

  • Profile Image
    nywebdev
    Answered on November 14, 2012 at 02:00 PM

    the forms are being embedded all on the same URL, but they are in individual posts (using wordpress).  the posts are randomly chosen with each page visit/refresh.  we want to track each individual form separately on the one URL to determine which one performs the best.

  • Profile Image
    NeilVicente
    Answered on November 14, 2012 at 03:05 PM

    @nywebdev

    I think you will need to add two goals to your campaign - one for when the individual form loads and the other on the form's thank you page/message. Since you will be testing conversion for three different forms, you will need to add individual tracking codes on the separate posts that contain the forms.

    The conversion goal tracking will have to be placed on the form's thank you page/message. Since the default thank you page/message cannot accept scripts, a tracking pixel should suffice.

    If you're okay with adding a custom Thank You URL (self-hosted page), then you can use the longer version of the tracking script.

    You can find more information here:

    http://www.jotform.com/answers/30225-GOOGLE-CONVERSION-CODE-not-working-anymore-on-THANK-YOU-MESSAGE-page-