Custom tree structure



AT Internet’s SDK lets you create a custom tree structure for your application.

Thanks to this feature, you can get a completely customised view of your traffic that responds precisely to your analysis criteria.

To do this, you must use screen categories. They represent a new way of classifying your screens, complementary to chapters, enabling a lateral view of results.



Get off to a good start

Once your tag has been initialised, you can create your custom tree structure.

If you want to use variables, be sure to import ATInternet, Tracker, Screen and CustomTreeStructure classes in your Activity.



The Screen object makes available a CustomTreeStructure method.

This method takes one parameter :

  • category1 of type int indicates the first custom tree category

This method returns a CustomTreeStructure object


Tagging example

  1. Create a custom tree structure
    package com.atinternet.atinternetdemo;
    import android.os.Bundle;
    import com.atinternet.tracker.ATInternet;
    import com.atinternet.tracker.Tracker;
    public class MainActivity extends Activity {
        private Tracker tracker;
        protected void onCreate(Bundle savedInstanceState) {
            tracker = ATInternet.getInstance().getDefaultTracker();
        protected void onResume() {
            Screen s = tracker.Screens().add(this);
            s.sendView(); // &ptype=5-8-4

CustomTreeStructure class



NameTypeDefault valueDescription
category1Int0Gets or sets the tree structure’s main category
category2Int0Gets or sets the tree structure’s subcategory
category3Int0Gets or sets the tree structure’s sub-subcategory
Last update: 05/04/2018