<?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>阅微堂 &#187; Google Analytics</title>
	<atom:link href="http://zhiqiang.org/blog/tag/google-analytics/feed" rel="self" type="application/rss+xml" />
	<link>http://zhiqiang.org/blog</link>
	<description>理工科背景的证券从业人员</description>
	<lastBuildDate>Sun, 05 Feb 2012 03:59:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>利用Galvanize和Google Analytics统计手机访问量</title>
		<link>http://zhiqiang.org/blog/it/mobile-analytics-with-galvanize.html</link>
		<comments>http://zhiqiang.org/blog/it/mobile-analytics-with-galvanize.html#comments</comments>
		<pubDate>Sat, 02 Jan 2010 04:35:34 +0000</pubDate>
		<dc:creator>zhiqiang</dc:creator>
				<category><![CDATA[IT技术]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[手机上网]]></category>

		<guid isPermaLink="false">http://zhiqiang.org/blog/it/mobile-analytics-with-galvanize.html</guid>
		<description><![CDATA[博客 » IT技术 » Google Analytics » 现在来自手机浏览器的流量越来越大，但由于中国电信国情（流量费高、速度慢）和其它技术原因，在中国使用的主流手机浏览器（如ucweb）都不支持Javascript，而且很多人为了节省流量，甚至选择不下载和显示图片。Galvanize就是在这种情况下的解决方案之一。 使用方法，首先下载Galvanize.php，然后在需要统计网页中插入下面的PHP代码： include('Galv...]]></description>
			<content:encoded><![CDATA[<p id="breadcrumb" class="breadcrumb"><a href="http://zhiqiang.org/blog/">博客</a> » <a href="http://zhiqiang.org/blog/category/it">IT技术</a> » <a href='http://zhiqiang.org/blog/tag/google-analytics'>Google Analytics</a>  » </p><p>现在来自手机浏览器的流量越来越大，但由于中国电信国情（流量费高、速度慢）和其它技术原因，在中国使用的主流手机浏览器（如ucweb）都不支持Javascript，而且很多人为了节省流量，甚至选择不下载和显示图片。Galvanize就是在这种情况下的解决方案之一。</p>
<p>使用方法，首先<a href="http://sourceforge.net/projects/galvanize/files/Galvanize-0.1-Alpha/Galvanize-0.1-Alpha.zip/download">下载Galvanize.php</a>，然后在需要统计网页中插入下面的PHP代码：</p>
<pre>include('Galvanize.php');
$GA = new Galvanize('UA-XXXXX-XX');
$GA-&gt;trackPageView();</pre>
<p>其中UA-XXXXX-XX是Google Analytics的帐户ID。上面这段代码统计出来的结果没有网页标题，利用下面这段代码替换上面最后一行代码，可指定网页标题：</p>
<pre>$GA-&gt;trackPageView('testing.php', 'Test Title');</pre>
<p>Galvanize的工作原理和效果：</p>
<p>Galvanize将原来由javascript在浏览器端的运算转移到了服务器端，并在服务器端直接向Google Analytics服务器提交数据。由于服务器拿不到浏览器端的某些数据，所以在统计结果中将缺失比如屏幕参数等信息，网络位置则显示为自己的主机位置而不是实际访问者的位置。但其它一些重要的信息比如Source，Keywords等均能被正确统计到。</p>
    <p></p>
    <hr noshade style="margin:0;height:1px" />
    <p>&copy; zhiqiang for <a href="http://zhiqiang.org/blog">阅微堂</a>, 2010. | <a href="http://zhiqiang.org/blog/it/mobile-analytics-with-galvanize.html">&#38142;&#25509;</a> | <a href="http://zhiqiang.org/blog/it/mobile-analytics-with-galvanize.html#comments">7 &#26465;&#35780;&#35770;</a></p>]]></content:encoded>
			<wfw:commentRss>http://zhiqiang.org/blog/it/mobile-analytics-with-galvanize.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

