Counting Unique Visitors

Example

Counting unique visitors to a software download page.

MGI Tags

  • mgiCounter

Steps

  1. Open the software download page in a text editor.
  2. Insert the mgiCounter tag, name parameter and ignoreClientIPAddress parameter.
  3. Save the software download page.
  4. FTP the software download page to the web server running MGI.
  5. View the software download page in a web browser.


Step 1: Open the software download page in a text editor.

Open the software download page in a text editing program that allows you to view and modify the HTML of your page.

Step 2: Insert the mgiCounter tag, name parameter and ignoreClientIPAddress parameter.

Insert your cursor in the HTML of the software download page page where you want the mgiCounter tag to display. Enter the mgiCounter tag, name parameter and ignoreClientIPAddress parameter. In the name parameter, enter a unique counter name. Counter names are case-sensitive. Enter "No" in the ignoreClientIPAddress parameter to increment the counter when the IP number of the current visitor does not match the IP number of the previous visitor.
<mgiCounter name="download" ignoreClientIPAddress="No">

Step 3: Save the software download page.

Save the changes you have made to the software download page.

Step 4: FTP the software download page to the web server running MGI.

Upload the software download page from your local computer to the web server using an FTP program.

Step 5: View the software download page in a web browser.

View the software download page in a web browser. The counter increments and displays on the page. If you quickly reload the software download page, the counter will not increment and will display the same value.


[Return to the Displaying Page Counters Menu]


[User Guide Main Menu] [Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]