Displaying Text Counters
Introduction
Counters tabulate the number of visitor's to a page. However,
counters cannot determine unique visitors to a page (i.e, one
visitor may visit the page multiple times).
Text counter values appear as text numbers. Graphic
counter values appear as number graphics in a specified font.
In this example, a text counter is added to a web page.
MGI Tags
Steps
- Open a page in a text editor .
- Insert the mgiCounter tag.
- Save the page.
- FTP the page to the web server running MGI.
- View the page in a web browser.
Step 1: Open a page in a text editor.
- Open a web page in a text editing program that allows you
to view and modify the HTML and code of the page.
Step 2: Insert the mgiCounter tag.
- Enter the mgiCounter tag and name parameter where you want
the counter value to appear. In the name parameter, enter the
unique counter name. Counters are stored in an internal MGI database
and values from multiple counters with the same name are added
to the same database record.
<p>You are visitor number <mgiCounter name="index">.
Step 3: Save the page.
- Save the changes you have made to the page.
Step 4: FTP the page to the web server running MGI.
- Upload the page from your local computer to the web server
using an FTP program.
Step 5: View the page in a web browser.
- View the page in a web browser. The counter value displays
"1" for the first visitor, "2" for the second
visitor, etc. Counter values continue to increment until the
counter value is reset using the counter admin.
|