Information Technology Services
Adding a Page Hit Counter
To insert a page hit counter on your web page, insert the following line of HTML code in your page where you want the count to show:
<script type="text/javascript" src="http://law.gsu.edu/includes/count.php"></script>
This counter will display "Visits: 13 - Views: 91" in your selected location. "Views" is the total number of times that the page was displayed. The "Visits" count will not increment unless one hour has elapsed since the last time that visitor has loaded the page. Some browser settings may not increment the"Views" count if the "Back" button is used to go back to the page. The counter will not work if JavaScript is disabled on the visitor's browser (a very small percentage of visitors). Note that this counter will only work on pages on the law.gsu.edu web server.
If you are comfortable editing HTML code, then just cut and paste the line above into your page's source code. Otherwise, the easiest way to do this in Dreamweaver is to type in "xxx" in the location where you want the counter to appear, then do a find-and-replace on the Source Code. With your web page open in Dreamweaver and the "xxx" entered, select the menu "Edit" then "Find and Replace..." Select "Current Document" in the "Find in:" drop-down selection, "Source Code" in the "Search:" selector, and do a "Replace All" with the settings as shown below:

You may not be able to see the result of this code insertion until you have saved the page to the web site and loaded it into a web browser.
