<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>简单生活 -- Kevin Yang的博客 &#187; UniquePageview</title>
	<atom:link href="http://www.imkevinyang.com/tags/uniquepageview/feed" rel="self" type="application/rss+xml" />
	<link>http://www.imkevinyang.com</link>
	<description>It&#039;s all about sharing</description>
	<lastBuildDate>Sun, 05 Feb 2012 15:37:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Google Analytics中的UniquePageView和Visits的区别</title>
		<link>http://www.imkevinyang.com/2009/12/google-analytics%e4%b8%ad%e7%9a%84uniquepageview%e5%92%8cvisits%e7%9a%84%e5%8c%ba%e5%88%ab.html</link>
		<comments>http://www.imkevinyang.com/2009/12/google-analytics%e4%b8%ad%e7%9a%84uniquepageview%e5%92%8cvisits%e7%9a%84%e5%8c%ba%e5%88%ab.html#comments</comments>
		<pubDate>Mon, 07 Dec 2009 06:23:00 +0000</pubDate>
		<dc:creator>Kevin Yang</dc:creator>
				<category><![CDATA[WebAnalytics]]></category>
		<category><![CDATA[GA]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[GoogleAnalytics]]></category>
		<category><![CDATA[pageview]]></category>
		<category><![CDATA[UniquePageview]]></category>
		<category><![CDATA[visit]]></category>
		<category><![CDATA[概念]]></category>

		<guid isPermaLink="false">http://www.imkevinyang.com/2009/12/google-analytics%e4%b8%ad%e7%9a%84uniquepageview%e5%92%8cvisits%e7%9a%84%e5%8c%ba%e5%88%ab.html</guid>
		<description><![CDATA[<p><a href="http://www.imkevinyang.com/tags/google" class="st_tag internal_tag" rel="tag" title="Posts tagged with Google">Google</a> Analytics中对UniquePageView是这样解释的：</p>
<blockquote><p>A unique view, as seen in the <em>Top Content</em> report, aggregates pageviews that are generated by the same user during the same session. A un&#8230;</p></blockquote>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.imkevinyang.com/tags/google" class="st_tag internal_tag" rel="tag" title="Posts tagged with Google">Google</a> Analytics中对UniquePageView是这样解释的：</p>
<blockquote><p>A unique view, as seen in the <em>Top Content</em> report, aggregates pageviews that are generated by the same user during the same session. A unique view represents the number of sessions during which that page was viewed one or more times.</p>
</blockquote>
<p>简单的说，一个页面的UniquePageView（唯一页面访问量）就等于访问过此页面的会话数的总和。假设某个网站有两个页面A和B，访问记录如下：</p>
<ul>
<li>2009-12-06 12:00 页面A&#160;&#160;&#160; 用户甲&#160;&#160;&#160; 会话1 </li>
<li>2009-12-06 12:10 页面B&#160;&#160;&#160; 用户甲&#160;&#160;&#160; 会话1 </li>
<li>2009-12-06 12:20 页面A&#160;&#160;&#160; 用户乙&#160;&#160;&#160; 会话2 </li>
<li>2009-12-06 12:30 页面A&#160;&#160;&#160; 用户丙&#160;&#160;&#160; 会话3 </li>
<li>2009-12-07 12:00 页面B&#160;&#160;&#160; 用户甲&#160;&#160;&#160; 会话4 </li>
</ul>
<p>对于页面A来说，和它相关的会话总共有3个，因此uniquepageview为3，页面B相关的会话有两个，因此UniquePageView为2。那么所有汇总得到的UniquePageView等于多少呢？是3+2=5呢，还是4？</p>
<p>这里面的核心问题就是，<strong><font color="#008000">同个会话访问了不同页面，<a href="http://www.imkevinyang.com/tags/google" class="st_tag internal_tag" rel="tag" title="Posts tagged with Google">Google</a> Analytics是计算两次还是只计算一次</font></strong>。</p>
<h2>实验出真知</h2>
<h3>实验步骤</h3>
<p>为了做这个实验，我在自己的网站上放了三个很特殊的静态页面，并加上了ga的代码，这样可以排除其他不必要的干扰。</p>
<ul>
<li>gatestpage_a.html </li>
<li>gatestpage_b.html </li>
<li>gatestpage_c.html </li>
</ul>
<p>实验的几点说明：</p>
<ul>
<li>为了模拟不同用户访问我的网站，我会清除掉所有的Cookie </li>
<li>为了模拟同个用户的不同会话，我会重启浏览器 </li>
<li>为了保证数据能够成功发送到<a href="http://www.imkevinyang.com/tags/google" class="st_tag internal_tag" rel="tag" title="Posts tagged with Google">Google</a>服务器，我使用HTTP Watch来监视所有发送的数据 </li>
</ul>
<p>测试访问记录（测试时间2009-12-06 21:40）：</p>
<ul>
<li>用户A&#160; 会话1&#160; <font color="#ff0000">gatestpage_a.html</font>&#160; </li>
<li>用户A&#160; 会话1&#160; <font color="#008000">gatestpage_b.html</font>&#160; </li>
<li>用户A&#160; 会话1&#160; <font color="#008000">gatestpage_b.html</font> </li>
<li>用户A&#160; 会话1&#160; <font color="#0000ff">gatestpage_c.html</font>&#160; </li>
<li>用户A&#160; 会话2&#160; <font color="#ff0000">gatestpage_a.html</font>&#160; </li>
<li>用户A&#160; 会话2&#160; <font color="#0000ff">gatestpage_c.html</font>&#160; </li>
<li>用户B&#160; 会话3&#160; <font color="#ff0000">gatestpage_a.html</font> </li>
<li>用户B&#160; 会话3&#160; <font color="#ff0000">gatestpage_a.html</font>&#160;&#160; </li>
<li>用户C&#160; 会话4&#160; <font color="#ff0000">gatestpage_a.html</font>&#160; </li>
<li>用户C&#160; 会话4&#160; <font color="#008000">gatestpage_b.html</font> </li>
<li>用户C&#160; 会话5&#160; <font color="#0000ff">gatestpage_c.html</font> </li>
</ul>
<p>OK，按照上面的访问记录，我们期望的报表应该是：</p>
<table border="1" cellspacing="0" cellpadding="2" width="550">
<thead>
<tr>
<td valign="top" width="100">&#160;</td>
<td valign="top" width="78">pageview</td>
<td valign="top" width="144">unique pageview</td>
<td valign="top" width="78">session/visits</td>
<td valign="top" width="100">visitors</td>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" width="100">gatestpage_a.html</td>
<td valign="top" width="78">5</td>
<td valign="top" width="144">4</td>
<td valign="top" width="78">4</td>
<td valign="top" width="100">3</td>
</tr>
<tr>
<td valign="top" width="100">gatestpage_b.html</td>
<td valign="top" width="78">3</td>
<td valign="top" width="144">2</td>
<td valign="top" width="78">2</td>
<td valign="top" width="100">2</td>
</tr>
<tr>
<td valign="top" width="100">gatestpage_c.html</td>
<td valign="top" width="78">3</td>
<td valign="top" width="144">3</td>
<td valign="top" width="78">3</td>
<td valign="top" width="100">2</td>
</tr>
<tr>
<td valign="top" width="100">汇总</td>
<td valign="top" width="78">11</td>
<td valign="top" width="144"><font color="#ff0000">????</font></td>
<td valign="top" width="78">5</td>
<td valign="top" width="100">3</td>
</tr>
</tbody>
</table>
<p>暂时我们不确定的就是汇总之后的UniquePageView了。</p>
<h3>测试结果</h3>
<p>在<a href="http://www.imkevinyang.com/tags/google" class="st_tag internal_tag" rel="tag" title="Posts tagged with Google">Google</a> Analytics后台，我创建了两张自定义报表，分别用于查看PageView相关的指标和Session相关的指标（<a href="http://www.imkevinyang.com/tags/google" class="st_tag internal_tag" rel="tag" title="Posts tagged with Google">Google</a> Analytics不支持在一张报表中同时查看这两类指标）。</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.imkevinyang.com/wp-content/uploads/2009/12/image_thumb13.png" width="425" height="141" /> </p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.imkevinyang.com/wp-content/uploads/2009/12/image_thumb14.png" width="423" height="141" /> </p>
<p><a href="http://www.imkevinyang.com/tags/google" class="st_tag internal_tag" rel="tag" title="Posts tagged with Google">Google</a>它不支持查看单个页面的Visits指标，上图中我们尝试<strong><font color="#008000">从Page维度去看访问量，实际上是看的着陆页面的维度，也就是此页面作为着陆页面的会话数</font></strong>。</p>
<p>我们将得到的报表整合到一块来看</p>
<table border="1" cellspacing="0" cellpadding="2" width="550">
<thead>
<tr>
<td valign="top" width="100">&#160;</td>
<td valign="top" width="78">pageview</td>
<td valign="top" width="184">unique pageview</td>
<td valign="top" width="38">session/visits</td>
<td valign="top" width="100">visitors</td>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" width="100">gatestpage_a.html</td>
<td valign="top" width="78">5</td>
<td valign="top" width="184">4</td>
<td valign="top" width="38">4</td>
<td valign="top" width="100"><font color="#ff0000">X</font></td>
</tr>
<tr>
<td valign="top" width="100">gatestpage_b.html</td>
<td valign="top" width="78">3</td>
<td valign="top" width="184">2</td>
<td valign="top" width="38">0</td>
<td valign="top" width="100"><font color="#ff0000">X</font></td>
</tr>
<tr>
<td valign="top" width="100">gatestpage_c.html</td>
<td valign="top" width="78">3</td>
<td valign="top" width="184">3</td>
<td valign="top" width="38">1</td>
<td valign="top" width="100"><font color="#ff0000">X</font></td>
</tr>
<tr>
<td valign="top" width="100">汇总</td>
<td valign="top" width="78">11</td>
<td valign="top" width="184"><font color="#ff0000">9</font></td>
<td valign="top" width="38">5</td>
<td valign="top" width="100"><font color="#ff0000">X</font></td>
</tr>
</tbody>
</table>
<p>从上面的报表我们可以看出，<strong><font color="#008000">UniquePageView的汇总方式是把每个页面的uniquepageview叠加到一块得到的</font></strong>。</p>
<p>我又查看了手头一些账号的数据，确认了这个结论。不过我之前也做过查看过相应的数据，不过当时的结论和现在的不同。当时的结论是，UniquePageView的汇总至并不总是等于每个page的UniquePageView相加之和，也不等于所有访问量（Vistis），当时觉得非常迷惑。感觉可能GA的UniquePageView本来就是这么设计的，但是当时有Bug，导致查看的时候出现数据不一致的现象。</p>
<p align="right">——<a href="http://www.imkevinyang.com/"><em><strong>Kevin Yang</strong></em></a></p>

	标签：<a href="http://www.imkevinyang.com/tags/ga" title="GA" rel="tag">GA</a>, <a href="http://www.imkevinyang.com/tags/google" title="Google" rel="tag">Google</a>, <a href="http://www.imkevinyang.com/tags/googleanalytics" title="GoogleAnalytics" rel="tag">GoogleAnalytics</a>, <a href="http://www.imkevinyang.com/tags/pageview" title="pageview" rel="tag">pageview</a>, <a href="http://www.imkevinyang.com/tags/uniquepageview" title="UniquePageview" rel="tag">UniquePageview</a>, <a href="http://www.imkevinyang.com/tags/visit" title="visit" rel="tag">visit</a>, <a href="http://www.imkevinyang.com/categories/techarticles/webanalytics" title="WebAnalytics" rel="tag">WebAnalytics</a>, <a href="http://www.imkevinyang.com/tags/%e6%a6%82%e5%bf%b5" title="概念" rel="tag">概念</a><br />

	<h4 style="background-color:#3B3B3B;border-bottom:2px groove gray;color:#F2F2F2;margin-top:20px;padding:6px 6px 6px 15px;margin:20px 0px 0px 0px">你可能对下面的文章感兴趣</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.imkevinyang.com/2009/08/4%e8%a1%8cgreasemonkey%e4%bb%a3%e7%a0%81%e6%9c%80%e5%a4%a7%e5%8c%96google-reader%e7%9a%84%e9%98%85%e8%af%bb%e7%a9%ba%e9%97%b4.html" title="4行Greasemonkey代码最大化Google Reader的阅读空间 (2009/08/09)">4行Greasemonkey代码最大化Google Reader的阅读空间</a> </li>
	<li><a href="http://www.imkevinyang.com/2010/03/android%e6%89%8b%e6%9c%ba%e5%88%9d%e4%bd%93%e9%aa%8c.html" title="Android手机初体验 (2010/03/01)">Android手机初体验</a> </li>
	<li><a href="http://www.imkevinyang.com/2010/03/g1%e6%89%8b%e6%9c%ba%e4%b8%8e%e7%ac%94%e8%ae%b0%e6%9c%ac%e5%ae%9e%e7%8e%b0wifi%e4%ba%92%e8%81%94%e5%85%b1%e4%ba%ab%e4%b8%8a%e7%bd%91.html" title="G1手机与笔记本实现Wifi互联共享上网 (2010/03/02)">G1手机与笔记本实现Wifi互联共享上网</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/11/google-wave%e4%b8%ba%e4%bb%80%e4%b9%88%e8%bf%99%e4%b9%88%e7%81%ab.html" title="Google Wave为什么这么火 (2009/11/14)">Google Wave为什么这么火</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/05/google%e5%92%8c%e5%be%ae%e8%bd%af%e7%9a%84%e4%b8%80%e5%a4%a7%e4%b8%8d%e5%90%8c.html" title="Google和微软的一大不同 (2009/05/06)">Google和微软的一大不同</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/03/google%e5%b7%a5%e7%a8%8b%e5%b8%88matt-cutts%e8%b0%88seo.html" title="Google工程师Matt Cutts谈SEO (2009/03/23)">Google工程师Matt Cutts谈SEO</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/03/google%e6%8e%92%e5%90%8d%e6%9b%b4%e6%96%b0.html" title="Google排名更新 (2009/03/21)">Google排名更新</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/03/google%e7%9a%84%e4%bb%b7%e5%80%bc%e8%a7%82.html" title="Google的价值观 (2009/03/07)">Google的价值观</a> </li>
	<li><a href="http://www.imkevinyang.com/2009/05/php%e5%a4%84%e7%90%86bom%e6%a0%87%e8%ae%b0%e7%9a%84utf-8%e6%96%87%e4%bb%b6%e5%af%bc%e8%87%b4%e7%9a%84%e9%97%ae%e9%a2%98.html" title="PHP处理BOM标记的UTF-8文件导致的问题 (2009/05/05)">PHP处理BOM标记的UTF-8文件导致的问题</a> </li>
	<li><a href="http://www.imkevinyang.com/2010/02/%e4%bd%bf%e7%94%a8feedburner%e7%83%a7%e5%88%b6rss%e6%9c%80%e5%a5%bd%e7%a6%81%e7%94%a8itemlinkclicks%e7%bb%9f%e8%ae%a1.html" title="使用FeedBurner烧制RSS最好禁用ItemLinkClicks统计 (2010/02/15)">使用FeedBurner烧制RSS最好禁用ItemLinkClicks统计</a> </li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.imkevinyang.com/2009/12/google-analytics%e4%b8%ad%e7%9a%84uniquepageview%e5%92%8cvisits%e7%9a%84%e5%8c%ba%e5%88%ab.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.imkevinyang.com @ 2012-02-08 18:44:23 -->
