4) The page with the AFS Analytics tracking code is displayed.
1) Select the code with the mouse inside the box.
2) Press Ctrl-C to copy the selected code. Make sure you copy the entire piece of code.
3) Open the HTML page you want to track in a text editor.
4) Press Ctrl-V to paste the copied code into your website html page. Make sure you copy the code after the <BODY> tag and before the <BODY> tag.
Note: If your are using the Exit click (or Adsense) tracking feature, you have to paste the AFS Analytics tracking code after the Google Adsense code or after the links that you want track.
5) By default, will use the first 100 characters of the text inserted between the <TITLE> and </TITLE> tags to detect the name of your page, so if you have no <TITLE> tags or your pages or titles are not correctly 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 AFS Analytics tracking code" for more informations.
6) Save your web site page.
7) Upload your page on your web site server.
Define your Page Name : (Optional)
By default, AFS Analytics uses the text inserted between the <TITLE> tags as the page name. If you want to change the page name, you need to replace the text "DetectName" in the line: var AFS_Page="DetectName"; with the name you want to set to the 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/ASP variable.For example in PHP.