Google Analytics事件跟踪疑难解答

时间:2016-04-05 18:47:55

标签: google-analytics

我正在努力从我的事件跟踪代码中获取结果...代码段中缺少哪些组件?谢谢!

<a onClick="ga('send', { hittype: 'event',  eventCategory: 'Referral', eventAction: 'Visit Site ', eventLabel: 'Client Name'});"href="//www.google.com" target="_blank">google</a>

1 个答案:

答案 0 :(得分:2)

啊,我想我看到了错误。您应该hittypehitTypega('send', 'event', 'Videos', 'play','Fall Campaign') Html.BeginForm(。 (我在我的控制台中运行了几次,但没有看到命中出现。)

或者,您可以使用简写语法:

<Form>