[英]Google consent mode Beta not showing page_view on Google Analytics
Possible duplicates:可能的重复:
I have followed the official documentation , but on Google Analytics dashboard I don't see any data in the real time mode.我遵循了官方文档,但在 Google Analytics(分析)仪表板上,我在实时模式下看不到任何数据。
<head>
<script type="text/javascript>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
'analytics_storage': 'denied',
'wait_for_update': 500
});
gtag('js', new Date());
gtag('config', 'UA-1XXXXXXXX-');
</script>
</head>
If the "denied" value is updated to "granted", the data shows up on the Google Analytics dashboard.如果“拒绝”值更新为“授予”,则数据会显示在 Google Analytics(分析)仪表板上。 What am I missing here?
我在这里想念什么?
Currently, if the Analytics consent is denied, despite the interactions being sent to the Google Analytics servers, the data set in question (characterized by a parameter that identifies the consent method) is not collected / exposed in the reports.目前,如果拒绝分析同意,尽管交互被发送到谷歌分析服务器,报告中不会收集/公开有问题的数据集(以标识同意方法的参数为特征)。 So it's normal that you don't see the data.
所以看不到数据是正常的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.