How do I track form submits with Google Analytics?

  • Profile Image
    Alexander
    Asked on October 12, 2013 at 02:18 PM

    How do I track form submits with Google Analytics?

     

    Thank you!

     

    --Alexander

  • Profile Image
    jedcadorna
    Answered on October 12, 2013 at 06:02 PM

    Hi Alexander,

     

    This can be done by downoading your form source and embed the google analytics into your source code. 

    1. Get your form source

    2.Find the submit button syntax. e.g.

    <button id="input_7" type="submit" class="form-submit-button form-submit-button-simple_blue">

    SUBMIT

    </button>

     

    3. Edit the submit button and add the tracking code. e.g.

    <button id="input_2" type="submit" class="form-submit-button" onclick="_gaq.push(['_trackEvent', 'resources', 'Email', 'full measure and install guide', 1, true]" )>Submit</button>

     

    4. Replace the current embed code in your website with form Source code.

     

    Let us know if you have other questions.

    Thanks,