Google Analytics自定义变量不起作用 [英] Google Analytics Custom variable is not working

查看:228
本文介绍了Google Analytics自定义变量不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Google分析中设置用户详细信息。我使用下面的语法,但它不能捕获登录到应用程序中的用户。

I want to set the user details in Google analytics. I using the following syntax but it is not working to capture the use those who logged in an application.

ga('set', 'employeetype', 'permanent');
ga('set', 'employeetype', 'vendor');
ga('set', 'employeetype', 'temporary');


推荐答案

您需要发送 Google分析中设置的自定义维度

ga('set', 'dimension1', 'permanent');

您无法使用您发送给您的名称Google Analytics无法理解它。请确保您检查Google Analytics并获取与employeetype维度对应的正确编号(维度通过维度前缀和GA后端维度列表中的数字索引进行设置 - 索引或多或少显示维度

You can't use the name you sent that is for you Google Analytics has no understanding of it. Make sure you check Google Analytics and get the correct number corresponding to employeetype dimension (dimensions are set via the "dimension" prefix and the numerical index from the list of dimensions in the GA backend - the index more or less shows the order in which dimensions are created).

尺寸出现在不同的范围中 - 命中程度(即它们连接到每一次交互),会话级别(即它们只记录最后一个值在会话期间设置)和用户级别(即它们被应用于定期访问者)。除非你期望你的员工经常改变他们的类型,否则你应该把它设置为用户级范围(但是这是后端设置,代码是相同的)。

Dimensions come in different "scopes" - hit level (i.e. they are connected to every single interaction), session level (i.e. they record only the last value set during a session) and user level (i.e. they are applied to a recurring visitor). Unless you expect your employees to change their type rather often you should probably set this to user level scope (but that's a backend setting, code is the same).

这篇关于Google Analytics自定义变量不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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