test

愛主的一家人

使用者工具

網站工具


dokuwiki:bugs:googleanalytics-no-effect

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

dokuwiki:bugs:googleanalytics-no-effect [2017/10/02 22:09] (目前版本)
ghsrobert - Imported by DokuWiki Advanced Plugin
行 1: 行 1:
 +====== googleanalytics 無效 ======
 +  - ☞ [[this:changelog|本站更新日誌]]
 +    - 2017/9/15 開始重新用在 ghsrobert.tk animal/公開個人站上(忘記是這天還是之前裝了 googleanalytics,因為該 animal 用的 template writr 本身不像 bootstrap3 內建支援 GA)
 +    - 9/21 發現 GA 一直沒收到資料,之後試了幾天改了些設定也都沒起色
 +  - → 9/25 反映 → [[https://github.com/tatewake/dokuwiki-plugin-googleanalytics/issues/9|Modification of template required? · Issue #9 · tatewake/dokuwiki-plugin-googleanalytics]]
 +  - ↑好心人 phy25 回覆說我的 template js.php 有誤,導致此 plugin 無法順利插入 Google 網頁碼
 +    - 我看了一下我的網頁有下列錯誤<div>
 +^  網域  ^  ghsrobert.tk  ^  ciangbrides.ml  ^
 +^  template  |  writr  |  bootstrap3  |
 +^  //無關//  | <code>
 +JQMIGRATE: Migrate is installed, version 3.0.0
 +jquery....aca964f (line 20)</code> | <code>
 +JQMIGRATE: Migrate is installed, version 3.0.0
 +jquery....aca964f (line 20)</code> |
 +^  xhtmlruby  | <code>
 +ReferenceError: addInitEvent is not defined
 +addInitEvent(function(){ fixRubyAlignment(); });
 +js.php?...3892c5d (line 65824)</code> | <code>
 +ReferenceError: addInitEvent is not defined
 +addInitEvent(function(){ fixRubyAlignment(); });
 +js.php?...38ad06f (line 67675)</code> |
 +^  bootswrapper  | <code>
 +TypeError: jQuery(...).popover is not a function
 +jQuery('.bs-wrap-popover').popover();
 +js.php?...3892c5d (line 5646, col 2)</code> |
 +^  formatplus  | <code>
 +TypeError: jQuery.browser is undefined
 +if(jQuery.browser.msie && 8 > parseFloat(jQuery.browser.version)){
 +js.php?...3892c5d (line 59754)
 +</code> | <code>
 +TypeError: jQuery.browser is undefined
 +if(jQuery.browser.msie && 8 > parseFloat(jQuery.browser.version)){
 +js.php?...38ad06f (line 61605)
 +</code> | <div>
 +  * /^20170930^/ 寄信問作者還收不收 issue
 +  * /^20171001^/ 作者 Tom 說可以問他
 +</div> |
 +^  錯誤數  |  3  |  2  |
 +</div>其中 2 條是一樣的,所以或許不是 writr 或 bootstrap3 個別 template 問題,而是某(些)plugin 所致?
 +    - /^20170930^/ 停用了 formatplus、xhtmlruby、bootswrapper,並清掉瀏覽器 cache 後,看來 googleanalytics 可以順利運作;但 Vivaldi 裡仍遇到<code>
 +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</code>
 +      * Pale Moon 裡好像沒這個錯誤
 +      * phy25 說他沒看到這問題
 +      * 那就只好等一、兩天看看 GA 會不會收到資料了……
 +  - /^20171001^/ 感謝 神,不管是不是追蹤到自己,總算 GA 收到 2 筆資料了,終於證明 googleanalytics 可行,不必依賴 bootstrap3 了 <<大心>>
  
 +{{tag>已解決 bug}}
dokuwiki/bugs/googleanalytics-no-effect.txt · 上一次變更: 2017/10/02 22:09 由 ghsrobert