fr | en | es | de

Tag implementation

New!
Discover the latest tools in the
Analytics Suite, thanks to our new online help.

Contents: Hide

The tagging of a site is, technically speaking, a simple process. Tagging consists of placing a few lines of JavaScript code on all pages of a site, mostly by using the ‘copy and paste’ method.

In some cases tagging requires preparation and planning depending on the complexity of the expected results. For this reason clients are strongly advised, when using the professional versions, to consider their marketing plan with care before placing the code on their pages. AT Internet uses analysis levels (group of sites, level 2 sites, chapter etc.) and it is important for clients to know at which level to organise their pages.

The tag code can be modified manually. However, minor modifications which are made to variables can lead to unreliable measurements, and may create JavaScript errors. If you have several sites, the code can be different and as a result you must always retrieve it in the appropriate zone.

The tags

There are several types of tags.

The main tag - AnalyzerNX

The "standard" tag (made up of JavaScript variables and a call to the xtcore.js file) must be inserted into all of the web pages.

<script type="text/javascript">

<!--

xtnv = document;  //parent.document or top.document or document        

xtsd = "http://logxxxx";

xtsite = "xxxxx"; //site number

xtn2 = "";        //level 2 site

xtpage = "";      //page name (with the use of :: to create chapters)

xtdi = "";        //implication degree

xt_multc = "";    //customised indicators

xt_an = "";       //numeric identifier

xt_ac = "";       //category

//do not modify below

if (window.xtparam!=null){window.xtparam+="&ac="+xt_ac+"&an="+xt_an+xt_multc;}

else{window.xtparam = "&ac="+xt_ac+"&an="+xt_an+xt_multc;};

 

//-->

</script>

<script type="text/javascript" src="http://www.mysite.com/xtcore.js"></script>

 

<noscript>

<img width="1" height="1" src="http://logxxxx.xxxx/hit.xiti?s=xxxxx&s2=&p=&di=&ac=&an=&" >

</noscript>

Some of this tag's variables are permanent and compulsory, including:

Other variables are optional and depend on the specific page that is being traced (recommended):

There are also more global values which are available on the whole site:

Main tag - ChannelOptimizerNX

Tagging procedures differ depending on the AT Internet solutions that you have subscribed to.

For any further information on the tag, please go to the section entitled Tagging Methods.

The specific tags (AnalyzerNX)

These are specific tags called by HTML events. These include:

Note

For each of these of codes, we offer:
* a secure version (for https pages or elements) so that the code does not generate an alert window,
* an XSL version for pages developed in xml and whose content is formatted with XSL,
* an XHTML version in case you want to strictly apply the XHTML standard.

The same variables tend to appear in most of these codes. They are essential in assigning measurements to your site. These variables are detailed below.

For more information about the technical implementation of all of these tags, please refer to the tagging guide link.

Specific cases

Using the main tag

In the tag code, you will see that there are several key elements which are retrieved depending on the site and level 2 site:

Note

You should not modify the code for the "xtsd" and "xtsite" parameters yourself - please use the code that is available in the Tags panel.
Should you experience any coding problems whilst creating your page labels (by inserting accents or any other special characters) please contact the Support centre via your interface. Our team will provide you with a solution which is adapted to your site's tagging.

The xtsite or s parameter

A site is made up of pages (or other types of format, such as e-mails, Flash, etc): all the pages based on the same site's ID (xtsite) relate to the site which will be analysed in the interface (regardless of its domain name(s)).

The xtn2 or s2 parameter (AnalyzerNX)

The AnalyzerNX solution by AT Internet makes it possible to create level 2 sites. These sites are independent sub-sites and are more than just separate sections. Almost all of the analyses available at site level can also be applied to a level 2 site. It is also very simple to allocate restricted access for one or more level 2 sites to specific users.

As far as tree structure is concerned, level 2 sites are found just under the site level, and must be declared using the interface before they can be used. When you create a level 2 site, place the ID which is generated into the xtn2 variable. Please remember that a page cannot belong to several level 2 sites.

It is therefore very important to define your level 2 sites correctly before tagging the site. You can always define your level 2 sites later, but it will mean tagging the whole site again.

The xtpage or p parameter

The xtpage parameter (or p= in the “noscript” section) is optional. If it is not given, the URL of the page will be used as the name of the page in your reports.

For example, the following URL will be the name of your page:

http://www.mysite/mypage.html

 

This parameter is therefore frequently used to clarify the audience reports by providing a more explicit name, for example: Home, Product, Registration, Contact etc.

As this page name is passed to our server using the http protocol (the standard web protocol), it is subject to certain rules to ensure a high degree of browser compatibility. These rules are as follows:

If necessary, here is a list of the recommended characters which can be used:

Use the separator :: to place pages into chapters.

Creating chapters (AnalyzerNX)

Chapters are located just below level 2 sites.

There are 3 different levels of chapters. Pages can be assigned to any chapter at any level. In general, certain pages may never be assigned to a chapter.

Important

There are two methods which can be used to create a chapter:

 * Through the administration interface:
 Creating chapters in the administration interface is simple and convenient. It is possible to create chapters after your site has been tagged. However, the pages will be disorganised and not associated with  any level after level 2 sites. Pages must therefore be assigned to the chapters you create, one by one. If you do not have many pages, this administration method is adequate. However, note that every new page measured will have to be manually placed in a chapter.

 * Through the tag code:
 Customising the tag code requires you to think strategically about your site structure in its entirety. As a result it may seem more difficult than creating chapters using the administration interface. However, in the longer term, this is a more durable and flexible solution. When the tagging and the classification of pages into chapters are clearly defined, each new page added on-line will be automatically assigned to the correct chapter. If the chapter does not exist, it will be created when the page is encountered.

Dynamically creating chapters

In addition to the name of the page, it is possible to create a chapter (and sub-chapter) dynamically and to assign the page to it automatically. To do so, use a double colon, "::" (with no spaces either before, between, or after).

If you wish to dynamically create a chapter you must not use more than three (3) "::". If you do happen to use more than three the "::" will be replaced with "_".

 

The page name:

xtpage="my_chapter1::my_sub_chapter1::my_sub_chapter2::my_sub_chapter3_my_page";

 

will be restored in the interface:

Important

AT Internet has a team of advisors who can develop a Personalised Tagging Plan for you. Please don't hesitate to submit your questions to us via the "Support centre".

ico_up.gif