简体   繁体   English

Google Analytics(分析)中的自定义变量

[英]Custom variables in Google Analytics

I have an application in which I am displaying dynamic advertisements. 我有一个显示动态广告的应用程序。 There are some ads displayed on pages without logging in, and others on pages that you have to log in to access them. 有一些广告未登录而显示在页面上,而另一些则需要登录才能访问它们。

First, I want to be able to track how many clicks have been made on a given ad accessible anonymously. 首先,我希望能够跟踪匿名访问给定广告的点击次数。

I added this code to the onclick event of the ad 我将此代码添加到了广告的onclick事件中

onclick="ga('set', 'dimension1', '@item.Id')" // @item.Id is the Id of the Ad

I can see that the event is triggered in the GA Debugger in Chrome, but I cannot see the result in GA even after 24h. 我可以看到该事件是在Chrome的GA调试器中触发的,但是即使在24小时之后,我也无法在GA中看到结果。

Second, I want to be able to track the Ids of the users who have clicked on the a given ad. 其次,我希望能够跟踪点击给定广告的用户的ID。 And I don't know if this can be done using GA. 而且我不知道这是否可以使用GA完成。

An ideas ? 有想法吗?

自定义维度和指标必须与互动相关联,并且不能单独发送-必须始终在互动点击之后(页面浏览量,事件,交易等)发送自定义维度和指标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MVC4中的Google Analytics(分析)集成 - Google analytics integration in mvc4 具有通配符域+子域的Google Analytics(分析) - Google Analytics with wildcard domains + subdomains Google Analytics如何确定用户是否可以移动? - How does Google Analytics determine if a user is mobile or not? 在ASP.NET MVC中实现Google Analytics(分析)4 - Implementing Google Analytics in ASP.NET MVC 4 Google Analytics / Piwik + MVC是否支持多租户? - Multi-tenant support with Google Analytics / Piwik + MVC? 如何使用AngularJS在Google Analytics(分析)中生成“明智的客户数据”? - How to make Location Wise Customer Data as in Google Analytics with AngularJS? 如何使用Google Analytics(分析)API发送页面链接作为参数,并使用C#检索报告数据 - How to send a page link as a parameter in google analytics API and retrieve the report data using C# OAuth2和DotNetOpenAuth - 实施Google自定义客户端 - OAuth2 and DotNetOpenAuth - implementing Google custom client 使用自定义段变量设置ASP.Net MVC 4路由 - Setting up ASP.Net MVC 4 Routing with custom segment variables azure 应用服务从 web.debug.config 读取自定义环境变量而不是配置菜单变量 - azure app service reading custom environment variables from web.debug.config not configuration menu variables
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM