[英]Can i set google analytics user id multiple time?
<script async src="https://www.googletagmanager.com/gtag/js?id={{ $account_id }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'XXXXX');
</script>
here gtag('config', 'XXXXX');这里 gtag('config', 'XXXXX'); and $account_id can be same of different?和 $account_id 可以相同或不同?
They have to be the same but you can add other config row with different Property ID (note: the value is Property ID, not Account ID) to send hits simultaneously to several properties.它们必须相同,但您可以添加具有不同属性 ID 的其他配置行(注意:值是属性 ID,而不是帐户 ID),以同时将命中发送到多个属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.