Using Invisible Counter with Official StatCounter Plugin for WordPress Använda Invisible Counter med officiella StatCounter Plugg för WordPress
WordPress bloggers using StatCounter service to track and count visitors and page views statistics on their blogs can now download and install WordPress bloggare använder StatCounter tjänst för att spåra och räkna besökare och sidvisningar statistik på sina bloggar kan nu ladda ner och installera official WordPess plug-in for StatCounter officiell WordPess plug-in för StatCounter to easily install StatCounter tracking code on self-hosted on the blog for comprehensive range of web analytic stats. enkelt installera StatCounter spårningskoden på egen värd på bloggen för omfattande utbud av webb-analytiska statistiken.
The StatCounter plugin provides easier way to install tracking code without the need to manually edit and modify the template files or code. Den StatCounter plugin ger enklare sätt att installera spårningskoden utan att behöva manuellt ändra och modifiera mallen filer eller kod. However, it also introduces some inflexibilities too, such as to make use of invisible counter. Däremot innehåller det också en del stelheter också, såsom att använda sig av osynliga disk. 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. Även om det är möjligt att anpassa Räkneverk stil osynlig i "Anpassa Counter" alternativet, men StatCounter ibland lägga en StatCounter.com tagline till webbsidor med kod till trots disk typ är osynliga i kontrollpanelen.
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. För att säkerställa att StatCounter alltid stanna osynlig när man använder officiella StatCounter Plugg för WordPress att automatiskt visa spårningskoden på alla Wordpress blogginlägg och sidor, en specifik tagg osynlig kod som behövs för att läggas till spårningskod genom att ändra plug-in fil.
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). Öppna StatCounter-Wordpress-Plugin.php i valfri textredigerare (om den redan laddats upp till servern remote SSH till servern och byta katalog till \ wp-content \ plugins). Then go to the bottom of the code, and locate a block of text similar to the following text at around line 197: Gå sedan till slutet av koden, och lokalisera ett block av text som liknar följande text på runt rad 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: Lägg till en extra Var raden nedan i mellan, eller på toppen eller botten av befintliga 3 rader:
var sc_invisible=1;
The final code will looks like below: Den slutliga koden ser ut som nedan:
<!-- 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. Lägg upp den nya plugin-filen till servern, eller om du redan redigering på servern, spara filen. Voila, the StatCounter will now always invisible to visitors' eyes. Voila, kommer StatCounter nu alltid osynligt för besökarnas ögon.
IMPORTANT : The page is machine translated and provided "as is" without warranty. VIKTIGT: är sidan maskin översatt och "i befintligt skick" utan garanti. Machine translation may be difficult to understand. Maskinöversättning kan vara svåra att förstå. Please refer to Hänvisas till original English article original English article whenever possible. möjligt.
Related Articles Artiklar
- StatTraq – Wordpress Plugin for Site Statistic and Traffic Counter StatTraq - Wordpress Plugg för Site Statistik och Traffic Counter
- How to Disable or Hide WordPress.com Automattic Stats Plugin Smiley Icon Inaktivera eller Dölj WordPress.com Automattic Stats Plugin Smiley Icon
- Permanently Disable AdSense-Deluxe WordPress Plugin Reward Plugin Author Option Permanent inaktivera AdSense-Deluxe WordPress Plugg Reward Plugin Författare Option
- WordPress Plugin: Display Google Analytics and FeedBurner Reports Statistics from Site Admin WordPress Plugg: Uppvisning Google Analytisk och FeedBurner Rapporter Statistik från Site Admin
- Technorati Incoming Links Plugin for WordPress Technorati Inkommande Länkar Plugg för WordPress
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 Kolonn Avkoppling WordPress Theme comments-paged.php för Paged-Kommentarerna WordPress Plugg
- Caption Disabler WordPress Plugin to Disable and Remove Captions Functionality Rubriken oduglig WordPress Plugg till Göra oduglig och Flytta Captions Functionality
- Automatically Update WordPress to Latest Version with Automatic Upgrade Plugin (WPAU) Automatisk Uppdatera WordPress till Senast Version med Automatisk uppgradering Plugin (WPAU)
- WLWManifest Disabler Plugin to Remove XLM Link in WordPress Blog Header WLWManifest oduglig Plugg till Flytta XLM Länk i WordPress Blog Header
- Free Download: Akismet for WordPress Plugin 2.0 to Stop Comment, Trackback and Pingback Spam Fri Data överför: Akismet för WordPress Plugg 2.0 till Stopp Kommentera, Spår bollen och Pingback Spam









































