AddFreeStats HTML CODE

AddFreeStats.com gives you the possibility to track your entire Web Site. AddFreeStats provides you until 5000 unique trackers per account ! The AddFreeStats HTML code is able to automatically detect the name(s) and the URL(s) of your pages.

How to start:

You need to place the AddFreeStats HTML code into your Web site Pages. You can find this HTML code by editing your AddFreeStats account. Push the button: "AddFreeStats code"

How to add the AddFreeStats HTML code.

If your site is coded in PHP or ASP, you can easily insert the code in an include file. ( footer file or other)


Example of 3dstats code :


1) Select the code in box by clicking on "HIGHLIGHT ALL".

2) Press Ctrl-C to copy the selected text. Make sure you copy the entire piece of code.

3) Open the HTML page you want to track in a text editor. If you use a web page editor, please read below for special instructions.

4) Press Ctrl-V to paste the copied code into your web page. Make sure you copy the code after the <BODY> tag and before the </BODY> tag. Note If your are using the Exit link (or Adsense) tracking feature, you must paste the AddFreeStats code after the Google Adsense code or after the links that you want track.

5) By default, AddFreeStats will use the first 100 characters of the text inserted between the <TITLE> </TITLE> tags to detect the name of your page, so if you have no <TITLE> tags or your pages or titles are not correcty defined, you will have to replace the "DetectName" string that is found within the code with a unique name for the page. Please read below "How to customize the AddFreeStats HTML code" for more informations.

6) Save your web site page.

7) Upload your page on your web site server.

Repeat these steps on every page you want to track.

How to customize the AddFreeStats HTML code. 

1) Define your Page Name : (Optional)

By default, AddFreeStats will use the text inserted between the <TITLE> </TITLE> tags as the page name. If you want to change the name of the page, you need to replace the text "DetectName" in the line:
var AFS_Page="DetectName";
with the name you want to attribute to this page. Be sure to leave the quotes around the page name text.

For Example : var AFS_Page="Index Page";

If your site is coded in PHP or ASP, you can define your own PHP variable.

For example in PHP.
$PageName="mypage";
In the include file with the AddFreeStats code: print ("var AFS_Page=\"$PageName\"");


2) Change the URL of the Page  (Optional)


If you want to change the URL of the page, you need to replace the text "DetectUrl" in the line
var AFS_Url="DetectUrl";
with the desired URL. Be sure to leave the quotes around the URL.

For Example : var AFS_Url="http://www.mysite.com/index.html";



Pages and Trackers Center


AddFreeStats gives you the possibility to create, delete and get the real code of your trackers.

How to Create, get the tracking code, delete or edit the trackers.


Edit your account and push the 'Manage Trackers' button.
A new page is displayed with the listing of the trackers used.


How to Create a new tracker.

1) Push the 'Create Tracker' button.
2) A new page is displayed. Enter the name and the url of the page that you want track.
3) Push the 'Save tracker' button.





How to Edit (change the tracker name or url) or Delete

Edit your account and push the 'Manage Trackers' button.
A new page is displayed with the listing of the trackers used



Push the "Edit" button for editing the tracker
Push the "Delete" button for deleting the tracker

How to get a real tracking HTML code.

Edit your account and push the 'Manage Trackers' button.

A new page is displayed with the listing of the trackers used



1) Push the 'Get Code' button. (if you push the 'Email code' button, you will receive the HTML code by Email.
2) A new page is displayed with the code.
3) Select the tracking code in box by clicking on "HIGHLIGHT ALL"
4) On your keyboard, press Ctrl-C to copy the selected text.
5) In your favorite text editor, open the web site page you want to track.
6) On your keyboard, press Ctrl-V to paste the copied code onto your web page before the </BODY> tag.
7) Save your web page.
8) Upload your page on your web server.




WEB HTML EDITORS

A number of HTML editors actually modify your HTML code and can break JavaScripts. Please find here some special instructions to copy the html code.

Front Page & Front Page Express
In Design View (default view)
Click on bottom of page.
Click insert > HTML Markup (in menu bar).
Paste copied code into text box.
Click "OK".

Front Page 2000
In Design View (default view)
Click on bottom of page.
Click insert > Advanced and select "HTML".
Paste copied code into text box.
Click "OK".

HotDog Pro
Paste copied code anywhere between <Body> and </Body> tags.
Ignore red highlighted code errors.
Do not attempt to edit any code!

Dreamweaver
In Design view: Paste copied code anywhere in the design view.
In HTML view: Paste copied code anywhere between <Body> and </Body> tags.
Ignore broken image tags.

HotMetal Pro
Paste copied code anywhere between <Body> and </Body> tags.
Ignore red highlighted code errors.
Do not attempt to edit any code!

Net Objects Fusion
Right click in layout.
Click "Layout HTML".
Click "Beginning of Body" tab.
Paste copied code
Click "OK".

Visual Page 2.0
Go to view > source ( in menu bar).
Paste copied code anywhere between <BODY> and </BODY> tags.
Return to Page View (view > page).
Ignore all extraneous code on page. (It will not affect how the page displays in a browser.)
Do not edit or delete any code!

Adobe Page Mill
Choose View > Source Mode and paste the JavaScript code between
<NOEDIT> and </NOEDIT> comments.