Tracking form submissions in Google Analytics

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 02:01:24

问题


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']);">

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.


回答1:


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');"

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.



来源:https://stackoverflow.com/questions/26636823/tracking-form-submissions-in-google-analytics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!