简体   繁体   中英

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="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.

Second, I want to be able to track the Ids of the users who have clicked on the a given ad. And I don't know if this can be done using GA.

An ideas ?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM