在Google跟踪代码管理器&中捕获Hotjar用户ID谷歌分析 [英] Capturing Hotjar User ID in Google Tag Manager & Google Analytics

查看:156
本文介绍了在Google跟踪代码管理器&中捕获Hotjar用户ID谷歌分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个设置,其中我们可以在Google跟踪代码管理器中捕获Hotjar用户ID,然后将其作为自定义维度传递给Google Analytics(分析).只需简单地合并和交叉引用两个数据源即可.

We have a setup where we capture Hotjar User ID in Google Tag Manager and then pass it as a custom dimension to Google Analytics. It's done to simply merge and cross-reference both data sources.

我们使用以下代码捕获用户ID:

We used the following code to capture the User ID:

function() { return hj.property.get('userId'); }

function() { return hj.property.get('userId'); }

2天前,即使Google Tag Manage,Google Analytics(分析)或我们的Hotjar帐户没有任何更改,我们也停止接收数据.

2 days back we stopped receiving the data, even though there haven't been any changes to Google Tag Manage, Google Analytics or our Hotjar account.

我怀疑Hotjar端有系统更新.我和他们的技术支持聊天,但是他们无法帮助我.

My suspicion is that there have been a system update on the Hotjar end. I had a chat with their technical support, but they were unable to help me.

如果有更多经验的人可以查看以下文件,以查看是否有一种捕获'userId'值的方法,那就太好了

Would be great if someone with more experience could have a look at the following file, to see if there is a way to capturing the 'userId' value:

https://script.hotjar.com/modules-397099a69f05558cbf66f164cffcaf65.js

谢谢

推荐答案

请尝试hj.pageVisit.property.get('userId').今天,这个已经为我返回了一个正确的userId.

Please try hj.pageVisit.property.get('userId'). This one has returned a proper userId for me today.

这篇关于在Google跟踪代码管理器&中捕获Hotjar用户ID谷歌分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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