這是本文件的舊版!
用 Google Analytics 追蹤 DokuWiki 瀏覽狀況
plugin
googleanalytics
- 無效
-
- 有人回覆說我的 template js.php 有誤,導致此 plugin 無法順利插入 Google 網頁碼
- 我看了一下我的網頁有下列錯誤
網域 ghsrobert.tk ciangbrides.ml template writr bootstrap3 無關 JQMIGRATE: Migrate is installed, version 3.0.0 jquery....aca964f (line 20)
JQMIGRATE: Migrate is installed, version 3.0.0 jquery....aca964f (line 20)
xhtmlruby ReferenceError: addInitEvent is not defined addInitEvent(function(){ fixRubyAlignment(); }); js.php?...3892c5d (line 65824)
ReferenceError: addInitEvent is not defined addInitEvent(function(){ fixRubyAlignment(); }); js.php?...38ad06f (line 67675)
bootswrapper TypeError: jQuery(...).popover is not a function jQuery('.bs-wrap-popover').popover(); js.php?...3892c5d (line 5646, col 2)
formatplus TypeError: jQuery.browser is undefined if(jQuery.browser.msie && 8 > parseFloat(jQuery.browser.version)){ js.php?...3892c5d (line 59754)
TypeError: jQuery.browser is undefined if(jQuery.browser.msie && 8 > parseFloat(jQuery.browser.version)){ js.php?...38ad06f (line 61605)
錯誤數 3 2 其中 2 條是一樣的,所以或許不是 writr 或 bootstrap3 個別 template 問題,而是某(些)plugin 所致?
- 20170930 停用了 formatplus、xhtmlruby、bootswrapper,並清掉瀏覽器 cache 後,看來 googleanalytics 可以順利運作,但 Vivaldi 裡仍遇到
js.php?t=writr&tseed=bdf7b17835357011097eb195b3892c5d:65377 GET https://www.google-analytics.com/analytics.js net::ERR_CONNECTION_REFUSED (anonymous) @ js.php?t=writr&tseed=bdf7b17835357011097eb195b3892c5d:65377 (anonymous) @ js.php?t=writr&tseed=bdf7b17835357011097eb195b3892c5d:65378
Pale Moon 裡好像沒這個錯誤
-
討論區