[英]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.