2013-07-18 32 views
2

Google+按鈕http://www.amayzinghomes.com顯示錯誤的計數。這是一個全新的域名,因此它應該只顯示幾次點擊。我認爲它可能會顯示Google Plus頁面上的點擊次數,我在該頁面上獲得腳本,而不是實際頁面的計數。這裏是我使用的腳本:Google Plus按鈕顯示錯誤的計數

<!-- Place this tag where you want the +1 button to render. --> 
<div class="g-plusone" data-size="tall" data-href="http://www.amayzinghomes.com/"></div> 

<!-- Place this tag after the last +1 button tag. --> 
<script type="text/javascript"> 
(function() { 
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; 
    po.src = 'https://apis.google.com/js/plusone.js'; 
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); 
})(); 
s</script> 
+0

我有一個WP博客同樣的問題,一些帖子顯示G +的26K計數器這是不正確的,因爲它的谷歌加頁的G +的數量博客。這個錯誤只發生在一些帖子上(它發佈在5篇帖子中,博客有近5千篇帖子)。 – Pons

回答

0

我有同樣的問題,https://plus.google.com/116401211377269068112顯示計數超過180,而JavaScript插件在www.ceriseshirts.com上只顯示13。下面的代碼給出

 <div class="g-plusone" data-size="medium" data-annotation="bubble" data-width="60" data-height="69" data-href="https://plus.google.com/116401211377269068112"></div> 
     <script> 
     (function() { 
     var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; 
     po.src = 'https://apis.google.com/js/plusone.js'; 
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); 
     })(); 
     </script> 
+0

歡迎來到堆棧溢出!請不要在答案空間發佈新問題。如果您的情況與OP的情況完全不同,您可以使用「Ask Question」按鈕發佈新問題。或者,你必須努力賺取「聲譽點」。有了足夠的分數,你將能夠投票,發表評論,並設置賞金以引起對問題的關注。祝你好運! –