Products

 

Foreword

AT Internet’s SDK enables you to tag products for sale that are viewed by your users during usage of your application.

The measurement of viewed products needs an option to be activated. Please contact the support centre for more information.

 

Get off to a good start

Once your tag has been initialised, you can send information of viewed products.

If you want to use variables, be sure to import ATInternet, Tracker and Product classes in your Activity.

 

Tagging

The tracker makes a Products object available. This object exposes the following methods:

  • add : Add a viewed product to the list and returns a Product object.
  • remove : Removes a viewed product in the list.
  • removeAll : Removes all viewed products.
  • sendViews : Send all viewed products.
 

Tagging examples

  1. Tagging a viewed product
  2. Tagging several viewed products
  3. Tagging viewed products with an “add to cart”
  4. Removal of a product
  5. Removal of all products
 

Product class

 

Properties

Name Type Default value Description
productId String Empty string Gets or sets the product ID
category1 String null Gets or sets the first product category
category2 String null Gets or sets the second product category
category3 String null Gets or sets the third product category
category4 String null Gets or sets the fourth product category
category5 String null Gets or sets the fifth product category
category6 String null Gets or sets the sixth product category
quantity Int -1 Gets or sets the product quantity
unitPriceTaxIncluded Double -1 Gets or sets the price per unit (including tax)
unitPriceTaxFree Double -1 Gets or sets the price per unit (without tax)
discountTaxIncluded Double -1 Gets or sets the discount amount (including tax)
discountTaxFree Double -1 Gets or sets the discount amount (without tax)
promotionalCode String null Gets or sets the product’s promotional code
Was this post helpful?
Yes
No
Last update: 11/06/2018