Google Analytics(分析):如何区分报告中的域名? [英] Google Analytics: How to separate domains in reports?

查看:116
本文介绍了Google Analytics(分析):如何区分报告中的域名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在多个网站上有一个代码。我想看看用户目前在哪个网站上。

I have one code on multiple websites. I want to see on which website users are currently.

目前我已经这样做了,但在报告中我只看到直接流量for all domains

Currently i have made it this way, but in reports i see only as "direct traffic" for all domains

可能吗?

var cb=function(){
    var pageTracker = _gat._getTracker('UA-XXXXXXXX-XX');
    pageTracker._setDomainName(document.domain);
    pageTracker._setAllowLinker(true); // To track traffic across domains
    pageTracker._trackPageview();
}

if(!window._gat) {                    
    $.getScript(('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js',cb);
}
else {
    cb();
}

也许可以通过自定义变量吗?

Maybe it's possible via custom variables?

推荐答案

您包含的代码应该允许您在报告中分隔域名。有几种方法可以做到这一点:

The code you included should allow you to separate domains in your reports. There are several ways to do this:


  1. 为每个域添加新配置文件(除了包含主配置文件的主配置文件外) 。您可以在个人资料下的管理员标签中执自定义过滤器将使用包含过滤器类型和指定每个域的主机名的过滤字段。
  2. 使用主机名字段将报告直接分割为单独的域。这适用于某些标准报告中的次级维度标准,但最简单的方法是在自定义报告中添加主机名称作为维度或过滤条件。 创建单独的高级细分每个域通过指定要创建维度为主机名的包含细分。

上面的两个选项允许您在报告中并排比较这两个域名。

The last two options above allow you to compare the two domains side by side in your reports.

这篇关于Google Analytics(分析):如何区分报告中的域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆