|
<% Select Case intTracking %>
<% Case 1 %>
 |
Javascript |
|
Overview |
Javascript tracking provides a way to track any type of web page including .htm, .html, .php, .aspx, .cfm, etc.
Robots cannot be tracked using javascript because they will not execute the javascript code.
|
Select Action |
Actions allow you to track special events on your web site such as a product sale,
member signup, etc. If you wish to track an action, make a selection from the drop down menu
below and click the Update button.
|
Tracking Code |
Copy and paste the following code into each web page that you would like to track:
|
More Information |
The ideal spot to place your tracking code is at the bottom of each web page before the closing html
tag (</html>). For the page title to be automatically inserted, you must place the tracking code
after the </title> tag and there must be text in the title tag.
Actions can be configured in the Settings section. When using actions to track events on your web site, enter an amount and order number if available
into the tracking code in the designated spots. Entering an amount will allow you to track the sales for each
action. Entering an order number ensures that duplicate actions don't occur as Site Statistics will
only count a distinct order number for each action. The order number should be unique and can be up to
100 characters long.
|
|
<% Case 2 %>
 |
Active Server Pages (ASP) |
|
Overview |
Using ASP is the optimal way to track your web pages. It allows you to track robots accessing your
web pages which javascript will not. The only limitation with using ASP tracking is that you will not
collect screen area data from your visitors. |
Select Action |
Actions allow you to track special events on your web site such as a product sale,
member signup, etc. If you wish to track an action, make a selection from the drop down menu
below and click the Update button.
|
Tracking Code |
<%
Dim strCode
If strAction <> "" Then
strCode = "<%" & vbcrlf &_
"Response.Cookies(""mt"")(""pagetitle"") = """" 'INSERT PAGE NAME (OR LEAVE BLANK)" & vbcrlf &_
"Response.Cookies(""mt"")(""action"") = """ & strAction & """ 'ACTION CODE" & vbcrlf &_
"Response.Cookies(""mt"")(""amount"") = """" 'ACTION AMOUNT (LEAVE BLANK OR 0 IF NO AMOUNT)" & vbcrlf &_
"Response.Cookies(""mt"")(""order"") = """" 'INSERT UNIQUE ORDER NUMBER" & vbcrlf &_
"Server.Execute("" & strScriptDir & "track.asp")" & vbcrlf &_
"%>"
Else
strCode = "<%" & vbcrlf &_
"Response.Cookies(""mt"")(""pagetitle"") = """" 'INSERT PAGE NAME (OR LEAVE BLANK)" & vbcrlf &_
"Server.Execute("" & strScriptDir & "track.asp")" & vbcrlf &_
"%>"
End If
%>
To track your .ASP files, add the following code to any .ASP page that you want to track:
|
<%
If strAction <> "" Then
strCode = "<%" & vbcrlf &_
"Response.Cookies(""mt"")(""pagetitle"") = """" 'INSERT PAGE NAME (OR LEAVE BLANK)" & vbcrlf &_
"Response.Cookies(""mt"")(""action"") = """ & strAction & """ 'ACTION CODE" & vbcrlf &_
"Response.Cookies(""mt"")(""amount"") = """" 'ACTION AMOUNT (LEAVE BLANK OR 0 IF NO AMOUNT)" & vbcrlf &_
"Response.Cookies(""mt"")(""order"") = """" 'INSERT UNIQUE ORDER NUMBER" & vbcrlf &_
"%>" & vbcrlf & _
"<!-- #Include Virtual="" & strScriptDir & "track.asp" -->"
Else
strCode = "<%" & vbcrlf &_
"Response.Cookies(""mt"")(""pagetitle"") = """" 'INSERT PAGE NAME (OR LEAVE BLANK)" & vbcrlf &_
"%>" & vbcrlf & _
"<!-- #Include Virtual="" & strScriptDir & "track.asp" -->"
End If
%>
You can also use a standard include in your asp pages like this:
|
More Information |
The ideal spot to place your tracking code is at the bottom of each web page.
Actions can be configured in the Settings section. When using actions to track events on your web site, enter an amount and order number if available
into the tracking code in the designated spots. Entering an amount will allow you to track the sales for each
action. Entering an order number ensures that duplicate actions don't occur as Site Statistics will
only count a distinct order number for each action. The order number should be unique and can be up to
100 characters long.
|
|
<% Case 3 %>
 |
Redirects |
|
You can track files that aren't web pages by linking to them in your web
page with HTML. This is useful for tracking downloads, media files, etc. |
Here is an example of how to link to a file and track it:
|
|
<% Case 4 %>
 |
Campaigns |
|
Overview |
This will help you to generate links to track campaigns you have setup in the
Settings section. Select the campaign you want from the drop down menu below and press
the update button.
|
<% If strCampaignCode <> "" Then %>
Campaign Tracking Links |
Here are some examples of how to link to your site and track a campaign:
Linking to your home page:
Linking to a specific page on your web site:
In the example above, replace the "somedirectory" and "somepage.html" with the actual directory and filename of where you want to send the visitor.
|
<% End If %>
|
<% Case Else '0 %>
 |
Overview |
|
To track activity on your web site, you will need to insert
tracking code on each web page. There are three different types of tracking code:
To setup web site tracking, follow these steps:
- Choose a tracking method
- Copy the code and paste it into your web pages
|
|
<% End Select %>
|