Displaying Graphic Counters


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 graphic counter is added to a web page.

MGI Tags


  1. Open a page in a text editor .
  2. Insert the mgiCounter tag.
  3. Save the page.
  4. FTP the page to the web server running MGI.
  5. 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, name parameter, type parameter and font 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. In the type parameter, enter "Graphic". In the font parameter, enter the font name you wish to display. The default font is "odometer". Additional built-in fonts include "DigitBlueGlow", "Greeny", "RedDigital", "SmallBlue", and "SaintFrancis". View font graphics.
<p>You are visitor number <mgiCounter name="about" 
type="Graphic" font="Odometer">.

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 a "1" graphic for the first visitor, a "2" graphic for the second visitor, etc. Counter values continue to increment until the counter value is reset using the counter admin.

[Return to the Displaying Page Counters Menu]

[Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]

[MGI Guides Main Menu] [User Guide Main Menu]