Install AFS Analytics on your website


How to Start?

AFS Analytics gives you the possibility to track your entire Web Site. AFS Web Analytics provides a unique asynchronous tracking code dedicated to your website. It was developed in HTML/JavaScript language, and is compatible with every internet browser.

How to get the AFS Analytics tracking code?

1) First, you need to login on your AFS Analytics account.
2) Select the option “A.F.S Code” in the "Account" drop down menu.

AFS Analytics

4) The page with the AFS Analytics tracking code is displayed.

How to insert the tracking code on your website pages:

If your website is developed in PHP or ASP, you can easily paste and save the code into a file and include it into your website footer.

If you use a content management system (Drupal,Joomla…), Blog Platform (WordPress, Blogger…) or website builder (1&1, Godaddy). We've provided some useful install guides for implementing AFS Analytics on several common web publishing platforms

Insert the code into you html website pages

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.

Repeat these steps on every page you want to track or insert the code into your website footer file.

How to customize the AFS Analytics tracking code

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.
$PageName="mypage";
In the include file with the AFS Analytics code: print "var AFS_Page="$PageName"";

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";



 
By afsteam

Go Top
AFS Analytics uses LiveDisplay Tachnology