English 中文(简体)
新的谷歌分析用户界面中的子域管理
原标题:Managing subdomains in the new Google Analytics user interface

我有以下领域结构:

Idomain.com

www.Idomain.com

site1.Idomain.com

site2.Idomain.com

我需要的是:

  • a profile to report all the traffic for all these domains together as one
  • a profile to report only the traffic for Idomain.com and www.Idomain.com as one (they actually are the same server alias, just a user preference whether use or not use the www, so I would like to merge both together)
  • a profile to report only the traffic for site1.Idomain.com
  • a profile to report only the traffic for site2.Idomain.com

这些网站基本上是一个网络应用程序的一部分,因此,我只想使用一个单一的跟踪代码。

我对大会来说很陌生,因此,我对网上的一些辅导进行了研究,但大多数都是过时的,从旧的GA用户界面抽取。 甚至谷歌 帮助文件似乎已经过时,因此,我对如何以干净的方式确定一切感到困惑。

What I have so far: I created an account for Idomain.com. I selected the radio option that this tracking code is for "One domain with multiple subdomains" and Google gave me the following tracking code:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push([ _setAccount ,  UA-12345678-1 ]);
  _gaq.push([ _setDomainName ,  Idomain.com ]);
  _gaq.push([ _trackPageview ]);

  (function() {
    var ga = document.createElement( script ); ga.type =  text/javascript ; ga.async = true;
    ga.src = ( https:  == document.location.protocol ?  https://ssl  :  http://www ) +  .google-analytics.com/ga.js ;
    var s = document.getElementsByTagName( script )[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

NOTICE: there is no dot before Idomain.com. Some web tutorials say, it should be there and some tutorials say that it is ok to leave it without the dot.

Google has created a profile: Idomain.com [DEFAULT] for me.

Now I am able to see the traffic separately by Hostname (Technology -> Network, and click Hostname in the table below the chart), but I would like to have a easier access to the Hostname filter, so they are already applied when I click on the profile name.

I tried to create a new profile site1.Idomain.com and added a filter: Predefined filter Include only -> traffic from the domains -> that are equal to -> site1.Idomain.com The filter appeared at the filters list for that profile, but still when I open the report, I see all the traffic together, including Idomain.com and site1.Idomain.com.

利用新的谷歌分析用户界面,为我的需求制定概况的最直接途径是什么?

最佳回答

首先,即根据地勤局的理由(http://www.mattcutts.com/blog/seo-advice-url-canonicalization/),将您的缺省网站(www.mattcutts.com)。

现在回答:

The reason to place the DOT "." on your _setDomainName (like .mydomain.com ) is to leave the cookies available for the visitors across your subdomains. That means that one visiting "site1.mydomain.com" and then going to "www.mydomain.com" would be treated as the same visit.

Hence, without the dot, you would get duplicate visits on your "get all" profile, once a visitor changes subdomains. (more on that here: http://code.google.com/intl/en/apis/analytics/docs/gaJS/gaJSApiDomainDirectory.html#_gat.GA_Tracker_._setDomainName)

关于过滤器,而不是预先界定的过滤器,试图为<>Hostname建立一个Custom Filter。 接着,pattern, 您创立了“Reex”研究,如^site1.mydomain.com$

希望!

问题回答

您应设置一个过滤器,在您的主要形象中添加主名,对子域进行比较。

然后为每个地点设置一个简介,只过滤该次主要地区的交通。

仅凭主人拥有2字母的地段xx.com,然后,你们只靠其他浏览器才能打赢电子交通。 我有这个问题,不能在现场约谈150-190个小区的情况下解决:

增 编





相关问题
How to set a fixed width of editor window in Eclipse?

Recently I have got a new 22" monitor. Finally it s possible to keep all needed windows in Eclipse open while having the main editor window wide enough to display all 120 columns. Problem now is when ...

Default list of Django built-in middleware

Django comes with a list of built-in middleware, but if one wants to use all (or most) of them, he has to work through tons of docs in order to get the right sorting in the settings.py file. Is there ...

Where is the data for Properties.Settings.Default saved?

In my WPF application, I click on Settings.settings in the Solution Explorer and enter a StringCollection variable with a User scope: in my app.config I see that they are saved there: <...

Application/User Settings with Roaming Profiles

Hi Guys any help would be much appreciated. We have an application that’s installed at several locations but we are having an issue at one particular site. In short the application settings (My.) ...

Setting network options in a RCP Application

We have a RCP application that does sometimes get some data from URLs in the internet. Our customer uses a Proxy-Server, and we can t get to the information we need unless the network-settings are ...

Storing key-value pair settings in silverlight

I have a class in silverlight that I would like to store to disk. It contains a couple of basic CLR objects - strings and integers, and a WPF BitmapImage. What is the best way to store this to a file?...

热门标签