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)
let properties = SubscriptionSubscriptionCreatedProperties(
endDate: endDate
)
bird.tracker.subscription.subscriptionCreated(properties)
const properties: SubscriptionSubscriptionCreatedProperties = {
end_date: end_date
};
Bird.tracker.subscription.subscriptionCreated(properties, event_opts);
Methods
subscriptionCreated()
val properties = SubscriptionSubscriptionCreatedProperties(
endDate = endDate
)
bird.tracker.subscription.subscriptionCreated(properties)
let properties = SubscriptionSubscriptionCreatedProperties(
endDate: endDate
)
bird.tracker.subscription.subscriptionCreated(properties)
const properties: SubscriptionSubscriptionCreatedProperties = {
end_date: end_date
};
Bird.tracker.subscription.subscriptionCreated(properties, event_opts);
SubscriptionSubscriptionCreatedProperties
subscriptionUpdated()
val properties = SubscriptionSubscriptionUpdatedProperties(
endDate = endDate
)
bird.tracker.subscription.subscriptionUpdated(properties)
let properties = SubscriptionSubscriptionUpdatedProperties(
endDate: endDate
)
bird.tracker.subscription.subscriptionUpdated(properties)
const properties: SubscriptionSubscriptionUpdatedProperties = {
end_date: end_date
};
Bird.tracker.subscription.subscriptionUpdated(properties, event_opts);
SubscriptionSubscriptionUpdatedProperties
subscriptionCanceled()
val properties = SubscriptionSubscriptionCanceledProperties(
endDate = endDate
)
bird.tracker.subscription.subscriptionCanceled(properties)
let properties = SubscriptionSubscriptionCanceledProperties(
endDate: endDate
)
bird.tracker.subscription.subscriptionCanceled(properties)
const properties: SubscriptionSubscriptionCanceledProperties = {
end_date: end_date
};
Bird.tracker.subscription.subscriptionCanceled(properties, event_opts);
SubscriptionSubscriptionCanceledProperties