HitMan tutorial - Static counters

 
     
  Page Views - Blind Counter  
     
     
  In the previous chapters we've seen that HitMan links can be created to download files and also to open a web page from a link embeded in another.

We will now learn how to make a counter that adds up when a page is opened without a managed call like when your visitor types the address to a page in his browser or the page is linked from elsewere where you cannot add a HitMan link nor you can't ask the webmaster to do it.



The procedure to create the link is the same as before. You tell HitMan the path to your page then enter a friendly name but now you press the Page View button instead. Finally you insert the code that HitMan generates.
 
     
  <!-- Begin HitMan code -->
<iframe height="0" width="0" frameborder="0" scrolling="no" src="http://www.hit2count.com/do/hm4/h4.cgi?acc=HitMan_Samples&lnk=tutorial_page7&cmd=fix"></iframe>
<!-- End HitMan code -->
 
     
  If you see the source of this page you are reading now you'll see the very same code from above embedded below. This means every time this page is displayed a hit is added to it counter.
The location of the code in the page is not really important, but the farther down you put it the faster everything else in the page will load and everything else is the content which ultimatelly is what your visitor came looking for and while they read or watch it the rest of the content is loaded and then the counter. Nowadays computers are lightspeed fast and pages load so fast it is hard to notice any lag when content is loaded.


The code from above is for a blind counter. This is a counter that is not visible to the visitor.


To create a visible counter you need to design or select a ready made counter. Lets talk about that in the next chapter.
 
     
     
     
     
     
 

 
  Previous topic Downloadable elements Next topic: Page Views - Visible Counters