[英]After setting up amp-analytics on my AMP where can I see the tracked data in Google Analytics?
So I've set up my page with amp-analytics
and linked it to my GA account using my ID. 因此,我使用amp-analytics
建立了我的页面,并使用ID将其链接到我的GA帐户。 I'm using this code for the amp component: 我将以下代码用于amp组件:
<amp-analytics type="googleanalytics" id="analytics1">
<script type="application/json">
{
"vars": {
"account": "MY-ACTUAL-ID"
},
"triggers": {
"trackPageview": {
"on": "visible",
"request": "event",
"visibilitySpec": {
"selector": "#sponsored_content_1",
"visiblePercentageMin": 20,
"totalTimeMin": 500,
"continuousTimeMin": 200
},
"vars": {
"eventId": "sponsor-view"
}
},
"trackAnchorClicks": {
"on": "click",
"selector": "a#sponsored_content_1",
"request": "event",
"vars": {
"eventId": "clickOnSponsorAnchor"
}
}
}
}
</script>
</amp-analytics>
My question is: Where do I actually see the info this is tracking inside Google Analytics? 我的问题是:我实际上在哪里可以看到Google Analytics(分析)中正在跟踪的信息?
Since you've sent "event" requests to GA, you can see them under Behaviour > Events > Overview
. 由于您已将“事件”请求发送到GA,因此您可以在“ Behaviour > Events > Overview
下看到它们。
I'd recommend in the vars section of your config to add eventCategory, eventAction (and eventLabel) properties, as these get pulled in GA and can be viewed readily eg 我建议在配置的vars部分中添加eventCategory,eventAction(和eventLabel)属性,因为这些属性会在GA中提取,并且可以轻松查看,例如
"vars": {
"eventId": "clickOnSponsorAnchor"
"eventCategory": "Sponsor Clicks",
"eventAction": "Anchor click"
}
在Google Analytics(分析)上,将Behaviour => Pages Seconday Dimension作为数据源,将值设置为“ amp”以过滤出仅amp流量
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.