在Google Analytics(分析)中跟踪表单提交 [英] Tracking form submissions in Google Analytics

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

问题描述

这可能是一个简单的问题,但是我是Google Analytics(分析)的新手.我正在尝试使用以下方法跟踪网站上表单上的提交:

This is probably a simple question, but I am new to Google Analytics. I am trying to track submissions on a form on my website using the following:

<form class="email" action="" method="post" onsubmit="_gaq.push(['_trackEvent', 'form', 'submitted', 'free first exam', 'true']);">

我可以在GA信息中心中找到该事件的数据吗?我想知道这张表格被提交了多少次.我似乎无法找到它在仪表板中的存储位置.

Where would I find the data for this event in the GA dashboard? I want to know how many times this form was submitted. I can't seem to locate where in the dashboard this is stored.

推荐答案

如果您将表单提交作为事件进行跟踪,则可以在报告中的行为">事件"下找到它.只是确认一下,您的语法适用于经典的Google Analytics(分析).如果您使用的是Universal Analytics,则语法应为:

If you are tracking the form submission as an event, you would find that in your reports under Behaviour > Events. Just confirming though, your syntax is for classic Google Analytics. If you are using Universal Analytics, then the syntax would be this:

onsubmit="ga('send', 'event', 'form', 'submitted', 'free first exam');"

您可能还想阅读这篇文章: Analytics.js表单onsubmit事件跟踪,它可为您提供有关GA中提交表单的更多信息,因为您可能需要确保在转到转换页面之前已发送事件.这是使用hitCallback完成的.

You may also want to read this post: Analytics.js Form onsubmit Event Tracking which gives you more information about form submissions in GA, as you may need to ensure that the event is sent before going to the conversion page. This is done using a hitCallback.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆