Developers » AS2 tagging » Android » Ecommerce » SalesTracker » Visited aisles 2.3.0
Visited aisles
Foreword
AT Internet’s SDK allows you to tag your product “aisles” or sections.
This is a navigation analysis specific to eCommerce applications enabling you to categorise the different screens proposing your products (latest collection, sales items, etc.). The objective is to have a panoramic view of the aisles your users visit. We consider visited aisles as areas of your site users have visited. It is therefore possible to have aisles like “Today’s deals”, “Sales”, “New reductions”, “New products”, etc. that contain the same product, depending on how that product is classified (its “category”).
Get off to a good start
Once your tag is initialised, you can add information about visited aisles to your screen hit.
If you want to use variables, be sure to import ATInternet, Tracker, Screen and Aisle classes in your Activity.
Tagging
The Screen object makes an Aisle method available. This method takes one parameter :
- level1 of type String indicates the first aisle level
Tagging examples
- Screen tagging with one level of aisles
package com.atinternet.atinternetdemo; import android.app.Activity; import android.os.Bundle; import com.atinternet.tracker.ATInternet; import com.atinternet.tracker.Tracker; public class MainActivity 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("High Tech"); s.Aisle"10[high_tech]"); s.sendView(); } }
- Screen tagging with several levels of aisles
package com.atinternet.atinternetdemo; import android.app.Activity; import android.os.Bundle; import com.atinternet.tracker.ATInternet; import com.atinternet.tracker.Tracker; public class MainActivity 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("Laptops"); s.Aisle("10[high_tech]") .setLevel2("20[Computers_network]") .setLevel3("30[Computers]") .setLevel4("40[laptops]"); s.sendView(); } }
Aisle class
Properties
Name | Type | Default value | Description |
---|---|---|---|
level1 | String | null | Gets or sets the first level of aisles |
level2 | String | null | Gets or sets the second level of aisles |
level3 | String | null | Gets or sets the third level of aisles |
level4 | String | null | Gets or sets the fourth level of aisles |
level5 | String | null | Gets or sets the fifth level of aisles |
level6 | String | null | Gets or sets the sixth level of aisles |