-
Notifications
You must be signed in to change notification settings - Fork 0
Custom tree structure 7c5129
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.
Once your tag has been initialised, you can create your custom tree structure.
In the case of a Swift project, be sure to import the SmartTracker module in your ViewController. In the case of an Objective-C project, be sure to import the headers SmartTracker-Swift.h
The Screen object makes available a CustomTreeStructure property. This property exposes an add method***,*** enabling you to add different categories that make up your tree structure, and add them to your screen hit.
-
Create a custom tree structure
import UIKit
import Tracker
class ViewController: UIViewController {
let tracker: Tracker = ATInternet.sharedInstance.defaultTracker
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewWillAppear(animated: Bool) {
let screen = tracker.screens.add("Home")
// First method
screen.customTreeStructure = CustomTreeStructure(category1: 5, category2: 8, category3: 4)
// Second method
screen.customTreeStructure = CustomTreeStructure(category1: 5)
screen.customTreeStructure?.category2 = 8
screen.customTreeStructure?.category3 = 8
screen.sendView() // &ptype=5-8-4
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}#import "ViewController.h"
#import "SmartTracker/SmartTracker-Swift.h"
@interface ViewController ()
@property (nonatomic, strong) ATTracker *tracker;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.tracker = [ATInternet sharedInstance].defaultTracker;
}
- (void)viewWillAppear:(BOOL)animated {
// First method
Screen *screen = [[tracker screens ] add:@"Home"];
screen.customTreeStructure = [[CustomTreeStructure alloc] initWithCategory1:5 category2:8 category3:4];
// Second method
CustomTreeStructure* cts = [[CustomTreeStructure alloc] initWithCategory1:5];
cts.category2 = 8;
cts.category3 = 4;
screen.customTreeStructure = cts;
[screen sendView]; // &ptype=5-8-4
}
@end-
Data API
- Data flow
- Advice optimizations data flow
- Error codes data flow
- Faq data flow
- General information data flow
- Technical information data flow
- Reporting API v3
- Getting started
- Methods
- Parameters
- Technical information
- REST API
- Campaigns
- Custom variables
- Getting started rest
- Methods rest
- Response structure parameters rest
- Fixed periods
- Parameters compatibility
- Relative periods
- Structure of the response
- “code” parameter
- “columns” parameter
- “evo” parameter
- “filter” parameter
- “include” parameter
- “lng” parameter
- “max-results” parameter
- “page-num” parameter
- “period” parameter
- “period” parameter: “H” v. “He” & “MN” v. “MNe”
- “retention” parameter
- “segmentdesc” parameter
- “segment” parameter
- “sep” parameter
- “sort” parameter
- “space” parameter
- Technical specifications rest
- Data flow
-
Data collection
- Android
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- Apple
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- General
- Cddc renew staging process
- Changelog
- Craft your hit
- Encoded parameters
- Server side cookie management
- Supported taggings
- Tagging deletion
- Utilisation of dispatch sdks
- JavaScript
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Partners javascript
- Users
- Piano Analytics
- Event tagging piano analytics
- Getting started piano analytics
- Piano analytics tagging
- Feeding piano analytics with as2 tagging
- Tagging custom properties sdk
- Android