TrackRequest

data class TrackRequest(val landingPageId: Int, val trackingSpotId: Int, val orderId: String? = null, val itemNumber: String? = null, val description: String? = null, val quantity: Int? = null, val price: Float? = null, val total: Float? = null)

Trigger a request for conversion tracking.

Tracking is a server side feature. You are able to perform tracking request to track your conversions.

This structure uses as a parameter the AdService.trackUser method. You can pass all parameters through the initializer.

val trackRequest = TrackRequest(
landingPageId = 1,
trackingSpotId = 1,
orderId = "orderId",
itemNumber = "itemNumber",
description = "description",
quantity = 1,
price = 19.99f,
total = 39.98f
)

AdService.getInstance().trackUser(trackRequest)

Constructors

Link copied to clipboard
constructor(landingPageId: Int, trackingSpotId: Int, orderId: String? = null, itemNumber: String? = null, description: String? = null, quantity: Int? = null, price: Float? = null, total: Float? = null)

Properties

Link copied to clipboard
val description: String? = null

Item description.

Link copied to clipboard
val itemNumber: String? = null

ID of a purchased article(s).

Link copied to clipboard

Internal ad server backend ID for the posttracking landingpage.

Link copied to clipboard
val orderId: String? = null

Order ID, which is a purchase transaction ID.

Link copied to clipboard
val price: Float? = null

Item price.

Link copied to clipboard
val quantity: Int? = null

Item number/quantity.

Link copied to clipboard
val total: Float? = null

Overall turnover of the basket.

Link copied to clipboard

Internal ad server backend ID for the trackingspot.