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 我的數字生活論壇 . 。
Related Articles相關文章
- Must Have WordPress Plugins必須有WordPress的插件
- StatTraq - Wordpress Plugin for Site Statistic and Traffic Counter StatTraq -W ordPress的插件站點統計和交通櫃檯
- Disable WordPress 2.3 Core and Plugins Update Check and Notification禁用WordPress的2.3核心和插件更新檢查和通知
- Automatically Update WordPress to Latest Version with Automatic Upgrade Plugin (WPAU) WordPress的自動更新到最新版本的自動升級插件( WPAU )
- Free Download: Akismet for WordPress Plugin 2.0 to Stop Comment, Trackback and Pingback Spam免費下載:為WordPress的Akismet插件2.0停止評論,引用和Pingback垃圾郵件
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin第3柱主題放寬WordPress的意見, paged.php的分頁,評論WordPress的插件
- Integrate WordPress including Comments with bbPress Forum using bbSync WordPress的整合,包括評論與bbPress論壇使用bbSync
- StatCounter Free Account Upgrades to 500 Log Size StatCounter免費帳戶升級到500日誌大小
- WordPress Plugin: Display Google Analytics and FeedBurner Reports Statistics from Site Admin WordPress的插件:顯示器谷歌分析和FeedBurner報告統計網站管理
- Download WordPress 2.3 Release Candidate 1 (RC1) with Tags Support下載WordPress的2.3候選發布版1 (一號)與標籤支持
































