• This function is used to set the variation (SKU) of product currently selected by the user.

    Parameters

    • sku: String
    • productId: String

    Returns void

    This method must be called immediately after the trackProduct(...) method is called. This will tell Contextual Commerce which variation of the product is currently selected.