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
Internal search engine 2bdb9a
Benjamin Diolez edited this page May 5, 2026
·
1 revision
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.
If you want to use variables, be sure to import ATInternet, Tracker, Screen and/or Gesture, InternalSearch classes in your Activity.
The Screen and Gesture objects make an InternalSearch method available.
This method takes two parameters :
- keywordLabel of String type indicates search keyword
- resultScreenNumber of int type indicates the screen number where item was selected by user
This method sends an InternalSearch-type object.
In order to track a search result page, you won’t add the resultPosition property.
- Search screen tagging
package com.atinternet.atinternetdemo;
import android.app.Activity;
import android.os.Bundle;
import com.atinternet.tracker.ATInternet;
import com.atinternet.tracker.Tracker;
public class SearchActivity extends Activity {
private Tracker tracker;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
tracker = ATInternet.getInstance().getDefaultTracker();
}
@Override
protected void onResume() {
super.onResume();
Screen s = tracker.Screens().add("Search Screen");
s.InternalSearch("keyword", 2);
s.sendView();
}
}- Result click tagging
package com.atinternet.atinternetdemo;
import android.app.Activity;
import android.os.Bundle;
import com.atinternet.tracker.ATInternet;
import com.atinternet.tracker.Tracker;
public class SearchActivity extends Activity {
private Tracker tracker;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
tracker = ATInternet.getInstance().getDefaultTracker();
}
@Override
protected void onClick(View v) {
super.onResume();
Gesture gesture = tracker.Gestures().add("SearchResult");
gesture.InternalSearch("keywordLabel", 1, 7);
gesture.sendSearch();
//OR
Gesture gesture = tracker.Gestures().add("SearchResult");
gesture.InternalSearch("keywordLabel", 1)
.setResultPosition(7);
gesture.sendSearch();
}
}| Name | Type | Default value | Description |
|---|---|---|---|
| keyword | String | null | Gets or sets keywords entered during the search |
| resultScreenNumber | Int | -1 (>= 2.3.4 –> 1) | Gets or sets the screen number containing the item on which the user clicked |
| resultPosition | Int | -1 | Gets or sets the position of the item on which the user clicked |
Last update: 05/04/2018
-
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