BirdTracker
The BirdTracker class is the main entry point for tracking events in the Bird SDK. It exposes the available semantic event packages and their corresponding methods to track events.
Examples
To emit a custom event, you can use the track method directly on the SDK instance:
Exemple de code
sdk.tracker.track("my-event", { "bird": "is the word" });To access BirdTracker and the semantic packages, you can use the tracker property of the SDK instance.
Exemple de code
sdk.tracker.ecommerce.orderConfirmed(event_props, event_opts);Extends
- Tracker
Properties
| Property | Type |
|---|---|
| audiences | AudiencesTracker |
| conference | ConferenceTracker |
| ecommerce | EcommerceTracker |
| messaging | MessagingTracker |
| subscription | SubscriptionTracker |
| suppressions | SuppressionsTracker |
| survey | SurveyTracker |
| tracker | TrackerTracker |
| web | WebTracker |