<?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>浮山狼de博客 &#187; google</title>
	<atom:link href="https://www.fushanlang.com/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fushanlang.com</link>
	<description>next station - 下一站，活在当下，且行且思</description>
	<lastBuildDate>Sat, 29 Nov 2014 15:14:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.5</generator>
	<item>
		<title>google analytics track</title>
		<link>https://www.fushanlang.com/google-analytics-track-2130/</link>
		<comments>https://www.fushanlang.com/google-analytics-track-2130/#comments</comments>
		<pubDate>Thu, 07 Jun 2012 10:14:47 +0000</pubDate>
		<dc:creator><![CDATA[fushanlang]]></dc:creator>
				<category><![CDATA[杂类]]></category>
		<category><![CDATA[GA]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google analytics]]></category>

		<guid isPermaLink="false">http://www.fushanlang.com/blog/?p=2130</guid>
		<description><![CDATA[<p>Google Analytics 的trackView添加方法</p> &#60;script type="text/javascript"&#62;  var _gaq = _gaq &#124;&#124; [];  _gaq.push(['_setAccount', 'UA-XXXXXx-1']); _gaq.push (['_gat._anonymizeIp']);   _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);   })(); $(document).ready(function(){ var <span style="color:#777"> . . . &#8594; Read More: <a href="https://www.fushanlang.com/google-analytics-track-2130/">google analytics track</a></span>]]></description>
				<content:encoded><![CDATA[<p>Google Analytics 的trackView添加方法</p>
<pre>&lt;script type="text/javascript"&gt;

 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-XXXXXx-1']);
<span style="color: #008000;"><strong>_gaq.push (['_gat._anonymizeIp']);</strong></span>

  _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);
  })();

$(document).ready(function(){
var pageTracker = _gat._getTracker("UA-XXXXX-1");
<del>pageTracker._initData();</del>
 <strong><span style="color: #008000;">_gat._anonymizeIp();</span></strong>
pageTracker._trackPageview();

//追踪所有的站外链接到GA统计  <em>/outgoing/外站域名</em>
$('a').each(function(){
    var h=$(this).attr('href');
    if(h&amp;&amp;h.indexOf('http://')==0&amp;&amp;h.indexOf('http://www.yourdomain.com')&lt;0){
        var  matches=h.match(/http:\/\/(\w+\.?\w+\.?\w+\.\w+).*/);
        if(matches.length&gt;1){
            $(this).bind('click',function(){
            pageTracker._trackPageview ('/outgoing/'+matches[1]);
            });
        }
    }
});
});
&lt;/script&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>https://www.fushanlang.com/google-analytics-track-2130/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>引入Google Ajax API的jquery库</title>
		<link>https://www.fushanlang.com/the-introduction-of-google-ajax-apis-jquery-library-1682/</link>
		<comments>https://www.fushanlang.com/the-introduction-of-google-ajax-apis-jquery-library-1682/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 01:07:33 +0000</pubDate>
		<dc:creator><![CDATA[fushanlang]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[googleapi]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.fushanlang.com/blog/?p=1682</guid>
		<description><![CDATA[jquery google API  AjaxAPI 库 <p>调用Google API的代码库，可以有效的减少自己站上的流量。比如Jquery，gzip后有19K，调用Google Api，不仅省去了流量，如果大家的网站都这么做的话，由于缓存原因，很多网站用到的话，就不需要重复加载了，非常节省资源，和加载时间。</p> <p>采用Ajax动态加载google的API中jquery库的代码是这样的：</p> google.load("jquery", "1.3.2");//加载jQuery 1.3.2 <p>之所以采用www.google.com.tw（这里也可以更换成其他域名如google.de,google.jp之类的）是因为www.google.com有时会不稳定，就会导致加载此代码的页面打不开。实际上如果你只用到jquery的话，根据firebug（火狐下插件）给出的实际地址，也可以直接向下面这样引入jquery库。</p> 希望对需要的朋友有用。:) ]]></description>
				<content:encoded><![CDATA[<h2>jquery google API  AjaxAPI 库</h2>
<p>调用Google API的代码库，可以有效的减少自己站上的流量。比如Jquery，gzip后有19K，调用Google Api，不仅省去了流量，如果大家的网站都这么做的话，由于缓存原因，很多网站用到的话，就不需要重复加载了，非常节省资源，和加载时间。</p>
<p>采用Ajax动态加载google的API中jquery库的代码是这样的：</p>
<pre name="code" class="javascript">
<script type="text/javascript" src="http://www.google.com.tw/jsapi"></script>
<script type="text/javascript">
    google.load("jquery", "1.3.2");//加载jQuery 1.3.2
</script>
</pre>
<p>之所以采用www.google.com.tw（这里也可以更换成其他域名如google.de,google.jp之类的）是因为www.google.com有时会不稳定，就会导致加载此代码的页面打不开。实际上如果你只用到jquery的话，根据firebug（火狐下插件）给出的实际地址，也可以直接向下面这样引入jquery库。</p>
<pre name="code" class="javascript">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
</pre>
<div>希望对需要的朋友有用。:)</div>
]]></content:encoded>
			<wfw:commentRss>https://www.fushanlang.com/the-introduction-of-google-ajax-apis-jquery-library-1682/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
