Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP Hit Counter

ASP Hit Counter

Scheduled Pinned Locked Moved Web Development
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris J LaQuerre
    wrote on last edited by
    #1

    I am looking to add a hit counter to an Intranet Site and was curious of the best way to do this. The only requirement is that each user should only be counted 1 time per day. The only page that we need to track is the home page. However, if we could EASILY add a counter to all pages on our site such as adding some code to the footer on our site (which is automatically pulled into all pages through SSI) then we would be willing to do things that way. Does anyone have any code that might be useful to me? Chris LaQuerre Internet Technologies Consultant

    C 1 Reply Last reply
    0
    • C Chris J LaQuerre

      I am looking to add a hit counter to an Intranet Site and was curious of the best way to do this. The only requirement is that each user should only be counted 1 time per day. The only page that we need to track is the home page. However, if we could EASILY add a counter to all pages on our site such as adding some code to the footer on our site (which is automatically pulled into all pages through SSI) then we would be willing to do things that way. Does anyone have any code that might be useful to me? Chris LaQuerre Internet Technologies Consultant

      C Offline
      C Offline
      Christopher Lord
      wrote on last edited by
      #2

      write a function called GetPageCount which simply gets the page count from a database or a file, increment it, and then saves it again. Then return the incremented value. Adding things like IP blocking will simply need some extra work. Then, you can add this to the SSI and it will start counting. <%=GetPageCount()%>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups