Typo的Google Analytics Plugin

Posted by eDWARD at 15:12

  1. 首先把Analytics Plugin的rails plugin sources添加到你的plugin repository中
  2. 然后安装Google Analytics plugin
  3. 最后在config/environment.rb中追加一行设置
  4. 把”UA-584170-1″修改为你在Google Analytics中的获得的代码就可以大功告成了,如果刷新你的应用后还是没有在网页最下方发现Google Analytics的script代码,那就再把HTTPD的服务重新启动一下应该就可以解决。

Sphere: Related Content

Filed In 学习路上 | Study | Tags: |

Your Comments.

Leave your own response

Leave a Reply.

Comment Form.

Fields denoted with a "*" are required. Your comment may require moderation, please be patient.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>




Your Reply.

Use the following link to trackback from your own site:
http://www.zhangzhang.net/articles/2006/08/22/typo-google-analytics-plugin/trackback/

Spread the word.

Octopus supports RSS feed for this post RSS 2.0 , and Trackbacks from other blogs.

Technorati

  品位不凡,威严,略显高深,喜爱一切美丽的事物,易怒,固执,有些利己,但关心接近他的人。谦逊,但非常有野心,有才能,刻苦,是不甚令人满意的伴侣,朋友众多,树敌也多,是可以信赖的人。


bloglines
google reader
my yahoo
订阅我的博客