Alec Tang

Professional Web Developer/ Web Designer

I build websites based on the latest web standards providing the best possible solution to your company

  • Home
  • About
  • Portfolio
  • Contact
  • Blog
Subscribe Feed

How to install a clean StatCounter Installation Code

Posted by Alec on Thu, 14 Jan 2010, in SEO   Web Design   

I have been using StatCounter, as my website tracking statistic provider for many many years, even after Google Analytic came out. I liked Google Analytics but there is just one thing that Google can't provide that StatCounter does and that is the most useful piece of information I get from the stat. StatCounter provides a way for users to track down user's activity, which means you can track down individual visitor's activity, from entry page to exit page and the length he/she stays on a particular page. This is never provided in Google Analytics, but of course Google Analytics does provide things that StatCounter doesn't.

But anyway, the reason of writing this post is to actually point out the fact that if you look carefully on StatCounter's installation code, it actually contains some crap which is never needed. It was included for their advertising/ search engine optimisation purpose.

A standard statcounter code would look like:

<!-- Start of StatCounter Code -->
<script type="text/javascript">
sc_project=xxxxx;
sc_invisible=1;
sc_partition=xx;
sc_security="xxxxxxx";
</script>
<script type="text/javascript" src="
http://www.statcounter.com/counter/counter_xhtml.js">
</script><noscript><div class="statcounter"><a title="web stats" class="statcounter"
href="
http://www.statcounter.com/free_web_stats.html"><img class="statcounter"
src=
http://c43.statcounter.com/3617605/0/f5e534d8a/1/ alt="web stats" /></a>
</div></noscript>
<!-- End of StatCounter Code -->

 

As you can see, there is this hyperlink and an invisible image with alternative text of "web stats" linking to StatCounter website. Sometimes, the anchor text would be different like "MySpace counter", or whatever they want to advertise. I guess this explains why StatCounter has a pagerank of 10 few years ago, which is now 8.

You can actually exclude the link by removing the noscript tag. It will still work brilliantly.

Comments Be the first to write a comment. Comment gets approved before publishing.

Post Your Comment

 
 
   

Search

 

Latest Posts

  • Website finally back up from Google's block
  • Sys.WebForms.PageRequestManagerParserErrorException
  • How Google treats Content Duplication
  • How to create HTML column in Sharepoint List View
  • How Sharepoint stores User Data
  • How to send email via Sharepoint
  • Malaysia Airlines launched iPhone Application: MHMobile
  • Intranet, the next big market
  • How to retrieve and update from a multi choice Checkboxlist ...
  • Auto Complete returns giant list of undefined

Categories

  • Browsers (1)
  • Projects (1)
  • Web Design (7)
  • Sharepoint (20)
  • Telerik (5)
  • Wordpress (1)
  • Internet (2)
  • SQL (5)
  • LINQ (3)
  • ASP.NET C# (33)
  • JavaScripts (3)
  • IIS (0)
  • Industry (1)
  • Tools (8)
  • SEO (5)

Archives

  • August 2010 (1)
  • May 2010 (1)
  • April 2010 (3)
  • March 2010 (5)
  • February 2010 (4)
  • January 2010 (11)
  • November 2009 (3)
  • October 2009 (1)
  • September 2009 (9)
  • August 2009 (3)
  • July 2009 (4)
  • June 2009 (1)
  • May 2009 (2)
  • April 2009 (8)
  • March 2009 (6)
  • February 2009 (2)
© Copyright 2009 Alec Tang. All Rights Reserved.
This site is conform to W3C Standard XHTML & CSS