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核心和插件更新检查和通知
- StatCounter Free Account Upgrades to 500 Log Size StatCounter免费帐户升级到500日志大小
- 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
- 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 (一号)与标签支持
































