本文介绍了使用 Google Analytics 跟踪 Google 表单提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Google 表单(一个带有自动生成的表单的 Google Doc 电子表格,用户可以填写该表单以提交其详细信息),并希望在 Google Analytics(分析)中以虚拟综合浏览量的形式跟踪表单的提交情况,以便我可以衡量转化.有人知道这是否可能吗?

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?

推荐答案

虽然 Crayon Violent 关于内置功能是正确的,但有一个可行的选择:如果您能够将 Google 表单 HTML 托管在您的自己的页面,您可以像对待任何其他表单一样对待它(您可以直接从表单页面复制和粘贴表单 HTML).只要您不修改输入,并且表单操作保持其呈现的状态,它就会成功发布到表单,无论它来自何处.(如果您愿意,您可以删除样式元素.)

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.)

您可以在此处查看示例:http://jsfiddle.net/PVBqX/2/

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

并且您可以在 Google 电子表格中很好地看到数据记录 这里.

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

而且,如果您使用 Firebug 或 Webkit 检查器,您将看到发送的虚拟浏览量:

And, if you use Firebug or Webkit inspector, you'll see that the virtual pageview is sent:

这篇关于使用 Google Analytics 跟踪 Google 表单提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 19:39