Custom tree structure

 

Foreword

Before using page custom tree structure methods, please ensure that you have initialised the AT Internet JavaScript tracker and selected the Page plugin from within the Tag Composer interface.

 

Principle

Thanks to this feature, you can obtain a completely customised view of all your traffic to completely match your analysis criteria. To do this, you must use page categories. Page categories allow you to classify pages complementarily to chapters, in order to have a transverse view of all results.

The following is a prerequisite for using a custom tree structure:

  • Declare your page categories (names, levels, etc.) from within the interface (Tools > Settings > Navigation & usability > Custom tree structure)

You can create your custom tree structure in an Excel or CSV file, then import it directly into your AT Internet interface.

 

Tagging

The Tracker has a customTreeStructure.set() method enabling you to define the custom tree structure values. This method takes an object as a parameter with the following properties:

PropertyDescription
category1ID of first category level
category2ID of second category level
category3ID of third category level

IDs passed in the tag corresponding to those declared in the interface. They are between 0 and 255.

 

Tagging examples

  1. Tagging a page with a custom tree structure:
    var tag = new ATInternet.Tracker.Tag();
    tag.page.set({
        name:'pageName'
    });
    tag.customTreeStructure.set({
        category1:1,
        category2:2,
        category3:3
    });
    tag.dispatch();
  2. Tagging a custom tree structure with the “page.send()” method:

    The tagging of tags via the “page.send()” method requires passing the “customTreeStructure” object directly as a parameter:

    var tag = new ATInternet.Tracker.Tag();
    tag.page.send({
        name:'pageName',
        customTreeStructure:{
            category1:1,
            category2:2,
            category3:3
        }
    });

 

Last update: 30/01/2018