-
Notifications
You must be signed in to change notification settings - Fork 0
Internal search engine 4972e5
AT Internet�s SDK allows you to tag your application�s internal search engine. By doing so, you can see which keywords were entered, as well as the results screen number, and the position of the item selected by the user.
Once your tag is initialised, you can add the search information to your screen or gesture hit.
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 header SmartTracker-Swift.h.
The Screen and Gesture objects make an internalSearch property available.
Tagging a search (the user is redirected toward a screen containing the results)
Here, parameters are passed as parameters during the selection of an item on the search screen
-
Search screen tagging
import UIKit
import Tracker
class SearchViewController: UIViewController {
let tracker = ATInternet.sharedInstance.defaultTracker
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
override func viewWillAppear(_ animated: Bool) {
let screen = tracker.screens.add("Search View")
screen.internalSearch = InternalSearch(keyword: "Keyword", resultScreenNumber: 1)
screen.sendView()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}// SearchViewController.m
#import "SearchViewController.h"
#import "SmartTracker/SmartTracker-Swift.h"
@interface SearchViewController ()
@property (nonatomic, strong) Tracker* tracker;
@end
@implementation SearchResultViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.tracker = [ATInternet sharedInstance].defaultTracker;
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
Screen *screen = [self.tracker.screens add:@"Search View"];
screen.internalSearch = [[InternalSearch alloc] initWithKeyword: @"Keyword" resultScreenNumber:1];
[screen sendView];
}
@end-
Result clic tagging
// SearchViewController.swift
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
let gesture = tracker.gestures.add("SearchLabel")
gesture.internalSearch = InternalSearch(keyword: "keywordLabel", resultScreenNumber: 1)
gesture.internalSearch?.resultPosition = 5
gesture.sendSearch()
}// SearchViewController.m
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
Gesture *gesture = [self.tracker.gestures add:@"SearchLabel"];
InternalSearch *internalSearch = [[InternalSearch alloc] initWithKeyword: @"Keyword" resultScreenNumber:1];
internalSearch.resultPosition = 5;
gesture.internalSearch = internalSearch;
[gesture sendSearch];
}-
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