Google analytics on my jotform

  • Profile Image
    gabriele scarpellini 
    Asked on July 10, 2014 at 08:47 AM

    Can i use google analytics on my jotform? i tried but it doens't work maybe i had wrong something?

    http://www.jotform.com/uploads/transferCS/form_files/car.jpg

     

    Thanks

    Please le me know asap by email

    GAbriel

  • Profile Image
    jedcadorna
    Answered on July 10, 2014 at 10:13 AM

    Hello,

    Google analytics uses javascript in every page to analyze the page so in order for you to embed your JS tracking code (the one provided by google) what you need is to download your form source https://www.jotform.com/help/104-How-to-download-a-source-code-of-your-form.

    Your tracking code will look something like this:

    <script>

      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'XX-XXXXXXXXX', 'auto');

      ga('send', 'pageview');

    </script>

    Just paste it above the <head> </head> section to track your form.

    1. Go to Admin

    2. Click on Tracking info and choose Tracking code