How to Create a Hit Counter in HTML

Written by foye robinson
  • Share
  • Tweet
  • Share
  • Email

If you want to track the number of visitors to your website without having to pull up your web page statistics, a visible hit counter may be for you. Visible hit counters are displayed directly on your website. You can add one by copying and pasting the counter's code directly into your HTML. You will find a host of free hit counters (some are included below) by doing an online search.

Skill level:
Easy

Other People Are Reading

Things you need

  • Text editor of your choice (option 1)
  • Web hosting account (option 2)
  • FrontPage (option 3)
  • Web browser

Show MoreHide

Instructions

  1. 1

    Conduct an online search for a free hit counter, such as 123counters.com, sitecounters.info and easy-hit-counters.com.

  2. 2

    Read the terms/agreement for using the free hit counter.

  3. 3

    Choose a style for your hit counter.

  4. 4

    Register your account by including a user name, password, starting count for your hit counter, a valid e-mail address and the URL of the page where the hit counter will be added.

  5. 5

    Accept the terms/agreement and follow them. A html code will be generated for your hit counter.

  6. 6

    Copy the html code provided. It may be similar to: <a href="http://easyhitcounters.com/stats.php?site=XXXXXX" target="_top"><img border="0" alt="Free Counters" src="http://beta.easyhitcounters.com/counter/index.php?u=XXXXXX&s=a" ALIGN="middle" HSPACE="4" VSPACE="2"></a><script src=http://beta.easyhitcounters.com/counter/script.php?u=XXXXXX></script>

    <a href="http://easyhitcounters.com/" target="_top"><font colour="#666666">Free Counter</font></a>

    Or another provided by http://www.gobblerhosting.com, which allows you to track "all hits" or "unique visitors": <a href="http://www.gobblerhosting.com" target="_blank"><img src="http://www.gobblerhosting.com/hitcounter/sample.php?page=&digit=digits/35/&reloads=" alt="Website Hosting Services" border="0"></a> <a href="http://www.gobblerhosting.com" target="_blank" style="text-decoration: none; font-size: 9px; font-family: Verdana; colour: #000000">Website Hosting Services</a>

  7. 7

    Open your preferred text editor (such as Notepad or WordPad) and scroll to the area of your page where you want the hit counter to appear. Most hit counters are placed on the bottom of the page, just above the </body> tag.

  8. 8

    Paste the hit counter code to each page you want to place the hit counter and save your HTML file.

  1. 1

    Check your web hosting account for a hit counter in your package. Contact your hosting company if you need help finding it.

  2. 2

    Choose to add your hit counter publicly or to track your visitors privately with an invisible counter or web statistics.

  3. 3

    Follow the hit counter wizard provided by your web host.

  4. 4

    Select to track unique visitor or all hits.

  1. 1

    Open your web page in FrontPage.

  2. 2

    Switch to Normal view if your page opens in a different view.

  3. 3

    Place your cursor where you want your hit counter to appear on your page.

  4. 4

    Select "Insert/Web Component" from the menu.

  5. 5

    Choose "Hit Counter" under the "Component Type" category.

  6. 6

    Click the hit counter style/design you want to use.

  7. 7

    Hit "Finish"

  8. 8

    Save your page (File/Save)

  9. 9

    Upload your web page to a hosting account that supports FrontPage extensions.

Don't Miss

References

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.