除了提交sitemap之外,对网站点击的流量、来源等进行分析,并对网站的内容进行相应的调整也是SEO不可或缺的一部分。
Google Analytics(Google分析)是Google提供的这样一款免费工具,可以对访问者、流量源、内容等方面生成详尽的报告,并且还可以很好的和Google Adsense结合。
使用你的Google账号登录Google Analytics后,为网站创建一个Analytics的Account,将得到一段js代码,将该段代码复制到想要跟踪分析的网页的</body>标签之前即可。
CMS的网页大多是动态生成,不可能逐页复制,因此需要将这段代码复制到模板中。修改模板的缺点是如果更换模板或者系统升级则需要重新更改,因此有人开发了插件来实现。
Wordpress的Ultimate Google Analytics就是一款插件,设置项也非常多,但是它只能为整个站点添加一个Google Analytics跟踪,对于Wordpress mu的用户来说,如果你想为站点里的每个博客添加分别的Google Analytics跟踪,UGA恐怕满足不了你的要求。
于是继续在WPMU DEV里需找适合Wordpress mu的插件,找到了一款Google Analytics Plugin For Wordpress MU - Revised- English。
下载安装包后解压,得到一个rafik_ga.php文件和一个rafik_ga目录,将其上传至/wp_content/mu-plugins/目录,无需启用即开始运行。
如果想要为整个站点设置Google Analytics,打开[Site Admin] –> [Google Analytics]。
如果项要为某个特定的博客站点设置Google Analytics,则打开[Setting] –> [Google Analytics]。

设置的界面很清爽,只需要将js代码中的一串类似”UA-xxxxxxx-x”或 “UA-xxxxxxx-xx”的字符串填入文本框,然后点击Update Options保存设置即可。接下来的就是耐心等待Google Analytics的分析数据了。
Want to track visitors and traffic of your website? Try Google Analytics, It’s free, and it can do more.
Steps:
1. Use your google account to login to Analytics
2. Click on Add Website Profile, A form displays
3. Select Add a Profile for a New Domain
4. Enter the URL of your site
5. Select your country and time zone. Click Finish
6. Analytics provides you two code blocks (the old one urchin.js and the new one ga.js) - to add to your site’s pages.
7. Copy the code block (ga.js) to every page you want to add Analytics as below:
<body>
(Google Analytics Code Block is going to go here!!!)
</body>
Copy and paste the code block one by one? Don’t tell me you website doesn’t have a template. Today more and more people use content management system like Drupal, Joomla, Wordpress to publish their website and blog, some Web Hosts even provide 1-click installation, and you also can find one by youself at Open Source CMS.
Once you walk on this way, things become quite easy. Basically, there will be a module/plugin which can be easily configurated.
For example, i am using Durpal and this site are built by Drupal, all i need to do is go to the website, find the Google Analytics module, install it, configuration, fill a Goolge Analytics account number(in the code block, UA-xxxx-x), finish. and then DONE.
Google Analytics need 24 hours to gether data, after one day, you can read the report.