This repository was archived by the owner on May 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
SmartTag migration guide 2486b1
Benjamin Diolez edited this page May 5, 2026
·
1 revision
Before Previously, it was necessary to initialize tag at the opening of the application:
ATTag *tag = [ATTag sharedATTag];
[tag setSiteId:@"YOURSITEID"];
[tag setSubdomain:@"YOURLOG"];SmartTag With SmartTag, it is necessary to instantiate the Tracker you will work wih. In order to do so, you need to add this ligne before your tagging:
// From TagComposer
let tracker = ATInternet.sharedInstance.defaultTracker
// From other source
let tracker = ATInternet.sharedInstance.tracker("myTracker", configuration: ["log":"YOURLOG", "logSSL":"YOURSSLLOG", "site":"YOURSITEID"])// From TagComposer
Tracker *tracker = [[ATInternet sharedInstance] defaultTracker];
// From other source
Tracker *tracker = [[ATInternet sharedInstance] tracker:@"myTracker" configuration:@{@"log":@"YOURLOG", @"logSSL":@"YOURSSLLOG", @"site":@"YOURSITEID"}];Tracker initialisation >
Before With SDK V1, hits we were sent via the following method:
ATParams *params = [[ATParams alloc] init];
[params xt_sendTag];SmartTag With SmartTag, hits are sent via the following method:
tracker.dispatch()[self.tracker dispatch];With .send* helpers, hits are sent when the method call.
Operating principle >
Before
[params setLevel2:@"10"];
[params setPage:@"Chapter1::Chapter2::Chapter3::Pagename"];SmartTag
// First Method
var screen = tracker.screens.add("Pagename", chapter1: "Chapter1", chapter2: "Chapter2", chapter3: "Chapter3")
screen.level2 = 10
// Second Method
var screen = tracker.screens.add("Pagename")
screen.chapter1 = "Chapter1"
screen.chapter2 = "Chapter2"
screen.chapter3 = "Chapter3"
screen.level2 = 10// First Method
Screen *screen = [tracker.screens add:@"Pagename" chapter1:@"Chapter1" chapter2:@"Chapter2" chapter3:@"Chapter3"];
screen.level2 = 10;
// Second Method
Screen *screen = [tracker.screens add:@"Pagename"];
screen.chapter1 = @"Chapter1";
screen.chapter2 = @"Chapter2";
screen.chapter3 = @"Chapter3";
screen.level2 = 10;Screens >
Before
[params xt_click:@"15" andClickName:@"Clickname" andClickType:ATParams.clicType.navigation];SmartTag
// First Method
var gesture = tracker.gestures.add("Clickname", chapter1: "Chapter1", chapter2: "Chapter2", chapter3: "Chapter3")
gesture.level2 = 10
// Second Method
var gesture = tracker.gestures.add("Clickname")
gesture.chapter1 = "Chapter1"
gesture.chapter2 = "Chapter2"
gesture.chapter3 = "Chapter3"
gesture.level2 = 10// First Method
Gesture *gesture = [tracker.gestures add:@"Clickname" chapter1:@"Chapter1" chapter2:@"Chapter2" chapter3:@"Chapter3"];
gesture.level2 = 10;
// Second Method
Gesture *gesture = [tracker.gestures add:@"Clickname"];
gesture.chapter1 = @"Chapter1";
gesture.chapter2 = @"Chapter2";
gesture.chapter3 = @"Chapter3";
gesture.level2 = 10;-
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