Universal Analytics中的跟踪-联系表7 [英] Tracking in Universal Analytics - Contact form 7

查看:67
本文介绍了Universal Analytics中的跟踪-联系表7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网站上有联系表7。使用经典分析,我可以在其他设置中使用它。.

I have contact form 7 on a site. With classic analytics I had this in additional settings..

    on_sent_ok: "_gaq.push(['_trackPageview', '/goals/enquiry-sent']);"

它可以很好地作为目标。更新到通用分析(包括人口统计跟踪)后,我随后将代码更新为:

And it tracked fine as a destination goal. As soon as I updated to Universal analytics (including the demographics tracking), I then updated the code to:

    on_sent_ok: "ga('send', 'event', 'category', 'action', 'label');"

,也尝试过

    on_sent_ok: "ga('send', 'pageview', '/your/url');"

我只是无法跟踪它们中的任何一个。

and I just can't get either of them to track.

任何想法都将不胜感激!

Any ideas would be much appreciated!!

谢谢,

推荐答案

on_sent_ok: "ga('send', 'event', 'Contact Form', 'sent');"

这对我有用。用所需的内容替换联系表单。

This works for me. Replace "Contact Form" with something you want.

这篇关于Universal Analytics中的跟踪-联系表7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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