Custom tree structure

 

Foreword

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.

To use SDK class and methods, add ATInternet namespace to your Page.

 

Tagging

The tracker makes available a CustomTreeStructures object that exposes an Add method. This method adds a custom tree structure to your screen and returns a CustomTreeStructure object that exposes three properties that are different categories of your custom tree.

 

Tagging example

  1. Create a custom tree structure
    using System;
    using System.Collections.Generic;
    using Windows.Data.Json;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using ATInternet;
    using Windows.UI.Xaml.Navigation;
    
    namespace App1
    {
        public sealed partial class MainPage : Page
        {
            Tracker tracker;
    
            public MainPage()
            {
                this.InitializeComponent();
                tracker = SmartTag.Instance.defaultTracker;
                // First Method
                tracker.CustomTreeStructures.Add(5,8,4);
                // Second Method
                CustomTreeStructure cts = tracker.CustomTreeStructures.Add(5);
                cts.Category2 = 8;
                cts.Category3 = 4;
                tracker.Screens.Add("custom tree").SendView(); // &ptype=5-8-4
            }
        }
    }
 

CustomTreeStructure class

 

Properties

Name Type Default value Description
Category1 Int 0 Gets or sets the tree structure’s main category
Category2 Int 0 Gets or sets the tree structure’s subcategory
Category3 Int 0 Gets or sets the tree structure’s sub-subcategory
Was this post helpful?
Yes
No
Last update: 31/03/2016