Subscription

To track an event using the subscription package, you can use the corresponding method on the tracker instance. For example:

Example

val properties = SubscriptionSubscriptionCreatedProperties(
    endDate = endDate
)
bird.tracker.subscription.subscriptionCreated(properties)

Methods

subscriptionCreated()

val properties = SubscriptionSubscriptionCreatedProperties(
    endDate = endDate
)
bird.tracker.subscription.subscriptionCreated(properties)

SubscriptionSubscriptionCreatedProperties

Property
Type

end_date?

String

items?

Array<Map<String, Any?>>

order_id?

String

product_categories?

Array

product_ids?

Array

product_names?

Array

product_skus?

Array

start_date?

String

subscription_id?

String

subscriptionUpdated()

val properties = SubscriptionSubscriptionUpdatedProperties(
    endDate = endDate
)
bird.tracker.subscription.subscriptionUpdated(properties)

SubscriptionSubscriptionUpdatedProperties

Property
Type

end_date?

String

items?

Array<Map<String, Any?>>

order_id?

String

product_categories?

Array

product_ids?

Array

product_names?

Array

product_skus?

Array

start_date?

String

subscription_id?

String

subscriptionCanceled()

val properties = SubscriptionSubscriptionCanceledProperties(
    endDate = endDate
)
bird.tracker.subscription.subscriptionCanceled(properties)

SubscriptionSubscriptionCanceledProperties

Property
Type

end_date?

String

items?

Array<Map<String, Any?>>

order_id?

String

product_categories?

Array

product_ids?

Array

product_names?

Array

product_skus?

Array

reason?

String

start_date?

String

subscription_id?

String

Last updated