星期二, 二月 09, 2010

在 phpBB 加入 Google Analytics code

要在 phpBB 加入 Google Analytics code 的步驟:

  1. vim styles/prosilver/template/overall_footer.html
  2. 於 </body> 前加入
    <script..... Google Analytics code ..</script>

放最下面除了頁面比較快外, 主要是 Analytics code 有時後會把頁面卡住, 雖然可以設 async 避免(Google Analytics goes async), 不過, 盡量不想去改 Google 本身提供的語法.

延伸閱讀

相關標籤

this is comment icon [回覆]

最好是放在頁尾
記得之前有一次 Google Analytics 當機
造成一堆網站幾乎沒辦法瀏覽

Comment by 日落 (02/11/2010 17:53)

this is comment icon 回 日落 [回覆]

Yes, 就是放在 頁尾 :)

Comment by Tsung (02/12/2010 14:08)

this is comment icon 請問 [回覆]

www.mfclub.org
如果我想把首頁上方的搜尋直接替換成google的,
要編輯哪個檔案呢?

Comment by ryan (07/23/2010 17:45)

this is comment icon 回 ryan [回覆]

我在你的頁面沒有看到搜尋框耶. XD

Comment by Tsung (07/23/2010 23:15)

this is comment icon [回覆]

要註冊後才會出現說,我也現在才發現

Comment by ryan (07/24/2010 13:53)

this is comment icon [回覆]

剛有發信給您了!,請收信,謝謝!

Comment by ryan (07/24/2010 14:05)

this is comment icon 回 ryan [回覆]

已經都在信中列出來囉~ . :)

Comment by Tsung (07/24/2010 23:34)
Add this page to del.icio.us

發表迴響

標題

內容 (限制 1000 字)

暱稱

電子郵件

個人網頁


 authimage


PS: 若無法留言, 請先確認是否有打開 JavaScript, 造成您的困擾, 實在萬分對不起 Orz...(如果無法留言, 勞煩可以發信給我好嗎? 謝謝.)
PS2: 若您的留言被誤判, 我都會再自行看過, 不需要一直重覆張貼~