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 plugin 雅虎看不见的插件 - - yahoo invisible script 雅虎看不见的脚本 - - counter_xhtml.js counter_xhtml.js - - where to put statcounter code for wordpress 如果把statcounter WordPress的代码 - - invisible checker php script 无形的检查PHP脚本 - - 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 看不见的代码跟踪观众 - - download plugins invisible 下载插件无形 - - how to config statcounter wordpress plugin 如何配置statcounter WordPress的插件 - - digital life wordpress plugin 数字生活WordPress的插件 - - statcounter firefox plugin statcounter火狐插件 - - where to install statcounter code into wordpress 在安装statcounter成WordPress的代码 - why does stat counter leave lines on my blog 为什么统计反假线我的博客 - - wordpress invisible stat counter WordPress的无形统计计数器 - - block wordpress counter WordPress的反封锁 - - my wordpress statcounter is not tracking 我WordPress的statcounter不是追踪 - - php yahoo invisible 雅虎无形的PHP - - wordpress yahoo counter 雅虎WordPress的反 - - yahoo invisible code 雅虎看不见的代码 - - statcounter firefox statcounter火狐 - - how to install stat counter on wordpress 如何安装统计计数器WordPress的 - - yahoo invisible detector script 雅虎看不见的检测脚本 - - check visible invisible yahoo php script 检查有形无形的雅虎PHP脚本 - - free script php yahoo invisible 免费的PHP脚本雅虎无形 - - statcounter wordpress invisible statcounter WordPress的无形 - - yahoo invisible script 雅虎看不见的脚本 - - download yahoo invisible script 下载雅虎看不见的脚本 - - invisible yahoo php script code 无形雅虎PHP脚本代码 - - plugin yahoo invisible 雅虎看不见的插件 - - script yahoo invisible checker 雅虎看不见的脚本检查 - - customize counter 自柜台 - - statcounter invisible counter without code statcounter无形的柜台没有代码 - - statcounter plugin for wordpress statcounter插件WordPress的 - - stat counter wordpress WordPress的统计计数器 - - wordpress counter WordPress的反 - - CODES FOR YAHOO INVISIBLE 雅虎守则无形 - - free invisible statcounter 免费无形statcounter - - script yahoo php invizibil 雅虎的PHP脚本invizibil - - Yahoo Invisible Checker Script 雅虎看不见的检查脚本 - - download script yahoo invisible detector 下载脚本雅虎看不见的探测器 - -