Counting Unique VisitorsIntroductionBy default, a counter increments for every access to a page. If the current counter value is 547, that number could represent 547 unique visitors, one person accessing the page 547 times or some combination of the two. To increase your likelihood of counting unique visitors, set the "ignoreClientIPAddress" parameter in your mgiCounter tag to "No". The mgiCounter tag will not ignore the current visitor's IP address and will compare the current visitor's IP address to the previous visitor's IP address. If the two IP addresses match, the counter will not increment. If the two IP addresses differ, the counter will increment. Notice that the "igonoreClientIPAddress" parameter of mgiCounter does not prevent the count of repeat visitors that do not occur sequentially. In this brief example, the ignoreClientIPAddress parameter is used on a software download page. MGI TagsSteps
Step 1: Open the software download page in a text editor.
Step 2: Insert the mgiCounter tag, name parameter and ignoreClientIPAddress parameter.
<mgiCounter name="download" ignoreClientIPAddress="No"> Step 3: Save the software download page.
Step 4: FTP the software download page to the web server running MGI.
Step 5: View the software download page in a web browser.
|