← Back to Documentation Home

PROTOCOL

TrackerProtocol

public protocol TrackerProtocol

Protocol for tracking operations

Methods

trackPageView(_:)

func trackPageView(_ url: String?) async throws

trackVariationView()

func trackVariationView() async throws

track(_:value:details:)

func track(_ event: String, value: Any?, details: [String: Any]?) async throws

setContext(_:)

func setContext(_ context: Context)

trackAddToCart(productId:productName:value:quantity:)

func trackAddToCart(productId: String, productName: String, value: Any, quantity: Int) async throws

trackPurchase(transactionId:value:products:)

func trackPurchase(transactionId: String, value: Any, products: [[String: Any]]?) async throws

trackGoal(_:value:details:)

func trackGoal(_ goalName: String, value: Any?, details: [String: Any]?) async throws

trackGoal(_:value:)

func trackGoal(_ goalName: String, value: Any?) async throws

trackGoal(_:)

func trackGoal(_ goalName: String) async throws