向 Google Analytics 公开变量
我想知道我是否可以将自己的变量暴露给GA?我想公开诸如用户的用户名或更重要的是登录的用户类型之类的信息。
对我来说,这是以下场景的重要组成部分:我想知道在一段时间内登录最多的用户类型。每种类型的用户最喜欢哪些功能?
从我读到的内容来看,根据谷歌的服务条款,这似乎是不可能的,但我确信一定有人有和我一样的需求。有没有办法用GA来做到这一点?我该怎么办?除了支付分析服务/工具费用或自己制作之外,他们还有其他选择吗?
干杯。
I am trying to find out whether I can expose my own variables to GA? I want to expose things such as a user's username or more importantly the type of user that logged in.
For me this is an important component for the following scenario: I want to know what type of users log in the most over a period of time. What features do each type of user hit the most?
From what I have read it seems impossible, according to Google's TOS, but I am sure someone must have the same needs as mine. Is there a way to do this with GA? What do I do? Are their any other alternatives, short of paying for an analytics service/tool or making my own?
Cheers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个想法,但它不适用于 GA 或其他基于标签的分析,只能使用日志分析器:将一个或多个 1x1 像素白色/透明 gif 上传到服务器,并在每个页面上包含类似这样的内容:
我认为您使用 PHP,但您可以轻松地将其调整为您选择的语言。
此后,使用查询报告和过滤器提取您需要的信息。我不确定哪些分析器支持此类报告/过滤器并为您提供您提到的其他详细信息(我们的产品支持,但它不是免费的),所以你可能想研究一下。
Here's an idea, but it won't work with GA or other tag-based analytics, just with log analyzers: upload one or more 1x1 pixel white/transparent gifs to a server and include something like this on each page:
I presume that you are using PHP, but you can easily adjust it to your language of choice.
After this, use Queries report and filters to extract information you need. I'm not sure which analyzers support such kind of reports/filters and give you other details you mention (our product does, but it's not free), so you might want to research a bit.
Google Analytics 提供了一种通过自定义访客细分对用户进行分组的方法。
例如,如果您想通过用户个人资料跟踪访问者,您只需编写
其中
pageTracker
是 GA 跟踪器实例,_setVar()
是您要使用的方法。可以为访问者的会话设置自定义标签。 Label 存储在__utmv
会话 cookie 中,您只需在跟踪会话开始时调用它一次。如需了解更多详情,请参阅 GA 开发者指南中的访问者配置一章。
Google Analytics provides a way to group your users via custom visitor segmentation.
For instance, if you'd like to track visitors by their user profile, you can just write
where
pageTracker
is a GA tracker instance, and_setVar()
is the method you can set a custom label to the visitor's session. Label is stored in the__utmv
session cookie, and you only have to call it once at the beginning of the tracking session.For further details, see the Visitor Configuration chapter in GA Developer's Guide.