# Product events
Those are standard User.com Product Events created by you and will contain any information you provide or sourced from a Product Feed (quantity of product, it's price, colour, etc.). Read more in Product Events documentation. (opens new window) They have predefined event types and can be used to capture user’s shopping activity.
# Sending Product Event
Every event type is predefined by enum type ProductEventType
. It suggests one of 16 types of product events. Below, you can find an example of sending product events to User.com.
- Kotlin
- Java
UserCom.getInstance().sendProductEvent("MY_PRODUCT_ID", ProductEventType.ADD_TO_CART, myParams);
Argument | Required | Description |
---|---|---|
Product Custom ID | Yes | Your own identifier for a Product |
Product Event Type | Yes | One of the predefined values |
Attributes | No | Key-value map containing product attributes |