结合Google Analytics客户端和服务器端跟踪 [英] Combining Google Analytics client- and server side tracking

查看:134
本文介绍了结合Google Analytics客户端和服务器端跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google Analytics客户端跟踪用户的行为。在某些时候,用户被重定向到我的一个合作伙伴,并收到合作伙伴对该用户产生的价值的回叫。



问题是:我如何将回调中的值附加到用户会话的值中?



目标是能够获得有关我的哪些流量来源生成最多价值(而不仅仅是大多数转化 - 因为这可以跟踪事件跟踪)。



解决方案可能与此类似,但我不确定它仍然存在最好的解决方案 - 也可能有其他的。
使用Google Google Analytics跟踪客户端JavaScript和服务器端跟踪调用中的同一会话?



感谢您提前致谢。

解决方案

因此,Google的新Universal Analytics似乎可以将用户UUID保存/同步到服务器,然后跟踪任何相关事件。 b
$ b

https://developers.google .com / analytics / devguides / collection / analyticsjs / user-id

这个包看起来很不错: https://www.npmjs.org/package/universal-analytics


I track my users behavior using Google Analytics client side. At some point the user is redirected to one of my partners and I receive a callback from the partner about the value the user has generated.

The question is: How do I append that value from the callback as a goal with a value to the users session?

The objective is to be able to get insights about which of my traffic sources generate the most value (and not just most conversions - as that could be tracked with event tracking).

The solution might be similar to this one, but I'm not sure it's still the best solution - and there could be others as well. Using Google Analytics to track the same session in client javascript and server side tracking calls?

Thanks in advance.

解决方案

So it seems that this is now possible with the new Universal Analytics from Google by saving/syncing the users UUID to the server and then tracking any relevant events.

https://developers.google.com/analytics/devguides/collection/analyticsjs/user-id

This package seems like a nice wrapper: https://www.npmjs.org/package/universal-analytics

这篇关于结合Google Analytics客户端和服务器端跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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