Use Google Analytics to track Google Form submissions

andygeers picture andygeers · Feb 4, 2011 · Viewed 39.4k times · Source

I'm using Google Forms (a Google Doc spreadsheet with an automatically generated form that the user can fill in to submit their details) and would like to track the submission of the form as a virtual pageview in Google Analytics so that I can measure conversions. Does anybody know if this is possible?

Answer

Yahel picture Yahel · Feb 6, 2011

While Crayon Violent is correct about the built-in capabilities, there is a viable option: If you're able to host the Google Form HTML on one of your own pages, you can treat it like any other form (you can literally copy and paste the form HTML from the form page). As long as you leave the inputs unmodified, and the form action remains as its presented, it will post successfully to the form, regardless of where it is hosted from. (You can remove the styling elements if you wish.)

You can see a sample of that here: http://jsfiddle.net/PVBqX/2/

And you can see the data record just fine in the Google Spreadsheet here.

And, if you use Firebug or Webkit inspector, you'll see that the virtual pageview is sent: Screenshot of __utm.gif hit generated