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

Please note: You must be registered to be able to post comments.

Search

 

Latest Posts

  • Auto Complete returns giant list of undefined
  • Integrate Ajax Control Toolkit into Sharepoint
  • Dynamically assign task to user in Sharepoint
  • Getting SPUser from SPQuery programmatically
  • Debug not working for Sharepoint
  • ScriptResource.axd from Ajax getting Too Big
  • Restore list form web part for EditForm
  • Reading and Writing to Lookup Field in Sharepoint
  • Creating Update Panel in Code Behind Dynamically
  • Solution to Hotmail and Email Accounts being hacked

Categories

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

Archives

  • March 2010 (1)
  • 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