Products

  • iOS
  • watchOS
  • tvOS
 

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.

In cases of a Swift project, please import the Tracker module (or TrackerExtension if your target is an extension) in your ViewController. In case of an Objective-C project, please import the headers ATInternet.h, ATTracker.h, ATProduct.h

 

Tagging

The tracker makes a products property available. This property exposes the following methods :

  • add (or addString in Objective-C) : 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? nil Gets or sets the product’s 1st category
category2 String? nil Gets or sets the product’s 2nd category
category3 String? nil Gets or sets the product’s 3rd category
category4 String? nil Gets or sets the product’s 4th category
category5 String? nil Gets or sets the product’s 5th category
category6 String? nil Gets or sets the product’s 6th category
quantity Int? nil Gets or sets the product quantity
unitPriceTaxIncluded Double? nil Gets or sets the unit price, including tax
unitPriceTaxFree Double? nil Gets or sets the unit price, excluding tax
discountTaxIncluded Double? nil Gets or sets the total discount, including tax
discountTaxFree Double? nil Gets or sets the total discount, excluding tax
promotionalCode String? nil Gets or sets the product’s promotional code
Was this post helpful?
Yes
No
Last update: 11/06/2018