MCPcopy Create free account
hub / github.com/Iterable/react-native-sdk / trackPurchase

Method trackPurchase

src/core/classes/Iterable.ts:550–558  ·  view source on GitHub ↗

* Create a purchase event on the current user's Iterable profile. * * Represent each item in the purchase event with an IterableCommerceItem object. * * @see IterableCommerceItem * * **NOTE**: `total` is a parameter that is passed in. Iterable does not sum the `pric

(
    total: number,
    items: IterableCommerceItem[],
    dataFields?: unknown
  )

Source from the content-addressed store, hash-verified

548 * ```
549 */
550 static trackPurchase(
551 total: number,
552 items: IterableCommerceItem[],
553 dataFields?: unknown
554 ) {
555 IterableLogger?.log('trackPurchase');
556
557 IterableApi.trackPurchase({ total, items, dataFields });
558 }
559
560 /**
561 * Create an `inAppOpen` event for the specified message on the current user's profile

Callers

nothing calls this directly

Calls 2

logMethod · 0.80
trackPurchaseMethod · 0.65

Tested by

no test coverage detected