Using Invisible Counter with Official StatCounter Plugin for WordPress用無形櫃檯正式StatCounter WordPress的插件

WordPress bloggers using StatCounter service to track and count visitors and page views statistics on their blogs can now download and install WordPress的博客使用StatCounter服務,跟踪和計數訪客和頁面瀏覽量統計其博客現在可以下載和安裝 official WordPess plug-in for StatCounter官方WordPess插件中StatCounter to easily install StatCounter tracking code on self-hosted on the blog for comprehensive range of web analytic stats.輕鬆地安裝StatCounter跟踪代碼自我主辦的博客為全方位的網絡解析統計資料。

The StatCounter plugin provides easier way to install tracking code without the need to manually edit and modify the template files or code. StatCounter插件的提供更簡單的方式來安裝跟踪代碼,而不需要手動編輯和修改模板文件或代碼。 However, it also introduces some inflexibilities too, such as to make use of invisible counter.然而,它也介紹了一些過於死板,如利用無形的櫃檯。 Although it’s possible to customize counter display style to invisible in “Configure Counter” option, but StatCounter sometimes add a StatCounter.com tagline to the web pages with code added even though the counter type is set to invisible in control panel.儘管這可能顯示自定義計數器樣式無形的“反設定”選項,但有時StatCounter新增StatCounter.com標語的網頁代碼增加,即使在櫃檯類型設置為無形的控制面板。

To ensure that StatCounter always stay invisible when using Official StatCounter Plugin for WordPress to automatically display the tracking code on all Wordpress blog posts and pages, a specific invisible tag code needed to be added into the tracking code by modifying the plug-in file.為了確保StatCounter始終看不見時,使用公務StatCounter為WordPress的插件自動顯示跟踪代碼對所有WordPress的博客文章和網頁,特定的無形標記代碼必須加入跟踪代碼,修改了插件文件。

Open StatCounter-Wordpress-Plugin.php in any text editor (if already uploaded to server, remote SSH into the server and change directory to \wp-content\plugins directory).打開StatCounter - WordPress的, Plugin.php在任何文本編輯器(如已上傳到服務器,到偏遠的SSH服務器和目錄更改為\可濕性粉劑內容\插件目錄) 。 Then go to the bottom of the code, and locate a block of text similar to the following text at around line 197:然後轉到底部的代碼,並找到一個文字區塊類似下列的文字大約197行:

<!-- Start of StatCounter Code -->
<script type="text/javascript">
<!--
var sc_project=<?php echo $sc_project; ?>;
var sc_partition=<?php echo $sc_part; ?>;
var sc_security="<?php echo $sc_security; ?>";
//-->
</script>
<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script>
<!-- End of StatCounter Code -->

Add an additional var line below to in between, or on top or bottom of existing 3 lines:新增無功線以下之間,或在頂部或底部現有的第3行:

var sc_invisible=1;

The final code will looks like below:最後的代碼看起來如下:

<!-- Start of StatCounter Code -->
<script type="text/javascript">
<!--
var sc_project=<?php echo $sc_project; ?>;
var sc_invisible=1;
var sc_partition=<?php echo $sc_part; ?>;
var sc_security="<?php echo $sc_security; ?>";
//-->
</script>
<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script>
<!-- End of StatCounter Code -->

Upload the new plugin file to the server, or if you already editing on the server, save the file.上傳新的插件文件到服務器,或者如果您已編輯的服務器上,保存該文件。 Voila, the StatCounter will now always invisible to visitors’ eyes. Voila ,在StatCounter現在將始終看不見遊客的眼睛。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明:這是一台機器翻譯網頁這是“原樣”提供,無保修。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article英文原文的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at共享和貢獻或獲得技術支持和幫助 My Digital Life Forums 我的數字生活論壇 .



Leave a Reply留下一個回复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些標籤: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> “刪除日期時間= “ ” “的<em> <i> <q cite=""> <strike>的<strong>

Subscribe without commenting訂閱沒有評論


Custom Search

New Articles新文章

Incoming Search Terms for the Article收到的搜索字詞的文章

yahoo invisible script 雅虎看不見的腳本 - - where to put statcounter code for wordpress 如果把statcounter WordPress的代碼 - - statcounter plugin statcounter插件 - - yahoo invisible php script 雅虎看不見的PHP腳本 - - "yahoo invisible checker"+php script “雅虎看不見的檢查” + PHP腳本 - - http://www.statcounter.com/counter/counter_xhtml.js http://www.statcounter.com/counter/counter_xhtml.js - - messenger plugins for invisible code 信使為無形的插件代碼 - - wordpress counter statistic WordPress的計數器統計 - - yahoo invisible script download 雅虎看不見的腳本下載 - - plugin StatCounter code 插件StatCounter代碼 - - invisible code to track viewers 看不見的代碼跟踪觀眾 - - counter_xhtml.js counter_xhtml.js - - download plugins invisible 下載插件無形 - - how to config statcounter wordpress plugin 如何配置statcounter WordPress的插件 - - digital life wordpress plugin 數字生活WordPress的插件 - - statcounter firefox plugin statcounter火狐插件 - -