Product events

To send product event, specify its id and type. You can find all event types: https://docs.user.com/how-to-create-product-events/. In parameters specify any data You want to collect.

  • UserComSDK.instance.sendProductEvent(
      event: ProductEvent(
        productId 'testid123',
        eventType: ProductEventType.addToCart,
        parameters: {
          'price': 22,
          'ref_number': '222',
          'time_spent_in_mins': 10,
          'converted': true,
          'variant_id': 'qaz123'
        },
      ),
    );