These lifecycle events are associated with the key interactions that a customer has with the app or website while placing an order for a product.
This event is triggered whenever a visitor clicks on a product. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the database ID of the product being viewed |
| String | Contains the SKU of the product |
| String | Contains the category of the product |
| String | Contains the name of the product being viewed |
| String | Contains the name of the brand associated with the product |
| String | Contains information of the variant associated with the product |
| Number | Contains the price of the product being viewed |
| Number | Contains the quantity of the product |
| String | Contains information on the coupon code associated with a product |
| Number | Contains the position of the product in the product list |
| String | Contains the URL of the product page |
| String | Contains the image URL of the product |
An example of the Product Clicked event is as shown:
rudderanalytics.track('Product Clicked', {product_id: '123',sku: 'F15',category: 'Games',name: 'Game',brand: 'Gamepro',variant: '111',price: 13.49,quantity: 11,coupon: 'DISC21',position: 1,url: 'https://www.website.com/product/path',image_url: 'https://www.website.com/product/path.png'});
This event is triggered whenever a visitor views a product. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the database ID of the product being viewed |
| String | Contains the SKU of the product |
| String | Contains the category of the product |
| String | Contains the name of the product being viewed |
| String | Contains the name of the brand associated with the product |
| String | Contains information of the variant associated with the product |
| Number | Contains the price of the product being viewed |
| Number | Contains the quantity of the product |
| String | Contains information on the coupon code associated with a product |
| String | Contains the currency of the transaction |
| Number | Contains the position of the product in the product list |
| String | Contains the URL of the product page |
| String | Contains the image URL of the product |
An example of the Product Viewed event is as shown:
rudderanalytics.track('Product Viewed', {product_id: '123',sku: 'F15',category: 'Games',name: 'Game',brand: 'Gamepro',variant: '111',price: 13.49,quantity: 11,coupon: 'DISC21',currency: 'USD',position: 1,url: 'https://www.website.com/product/path',image_url: 'https://www.website.com/product/path.png'});
This event is triggered whenever a visitor/customer adds a product to their shopping cart. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the cart ID of the cart to which the product was added |
| String | Contains the database ID of the product being viewed |
| String | Contains the SKU of the product |
| String | Contains the category of the product |
| String | Contains the name of the product being viewed |
| String | Contains the name of the brand associated with the product |
| String | Contains information of the variant associated with the product |
| Number | Contains the price of the product being viewed |
| Number | Contains the quantity of the product |
| String | Contains information on the coupon code associated with a product |
| Number | Contains the position of the product in the product list |
| String | Contains the URL of the product page |
| String | Contains the image URL of the product |
An example of the Product Added event is as shown:
rudderanalytics.track('Product Added', {product_id: '123',sku: 'F15',category: 'Games',name: 'Game',brand: 'Gamepro',variant: '111',price: 13.49,quantity: 11,coupon: 'DISC21',position: 1,url: 'https://www.website.com/product/path',image_url: 'https://www.website.com/product/path.png'});
This event is triggered whenever a product is removed from the shopping cart by the customer. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the cart ID of the cart to which the product was added |
| String | Contains the database ID of the product being viewed |
| String | Contains the SKU of the product |
| String | Contains the category of the product |
| String | Contains the name of the product being viewed |
| String | Contains the name of the brand associated with the product |
| String | Contains information of the variant associated with the product |
| Number | Contains the price of the product being viewed |
| Number | Contains the quantity of the product |
| String | Contains information on the coupon code associated with a product |
| Number | Contains the position of the product in the product list |
| String | Contains the URL of the product page |
| String | Contains the image URL of the product |
An example of the Product Removed event is as shown:
rudderanalytics.track('Product Removed', {product_id: '123',sku: 'F15',category: 'Games',name: 'Game',brand: 'Gamepro',variant: '111',price: 13.49,quantity: 11,coupon: 'DISC21',position: 1,url: 'https://www.website.com/product/path',image_url: 'https://www.website.com/product/path.png'});
This event is triggered whenever a visitor or customer views their shopping cart. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the cart ID of the cart to which the product was added |
| Array | Contains the list of products displayed in the product list |
| String | Contains the product ID displayed on the list |
| String | Contains the SKU of the product being viewed |
| String | Contains the category of the product being viewed |
| String | Contains the name of the product being viewed |
| String | Contains the name of the brand associated with the product |
| String | Contains information of the variant associated with the product |
| Number | Contains the price of the product being viewed |
| Number | Contains the quantity of the product |
| String | Contains information on the coupon code associated with a product |
| Number | Contains the position of the product in the product list |
| String | Contains the URL of the product page |
| String | Contains the image URL of the product |
An example of the Cart Viewed event is as shown:
rudderanalytics.track('Cart Viewed', {cart_id: '12345',products: [{product_id: '123',sku: 'G-14',name: 'Cards',price: 14.99,position: 1,category: 'Games',url: 'https://www.website.com/product/path',image_url: 'https://www.website.com/product/path.jpg'},{product_id: '345',sku: 'G-32',name: 'UNO',price: 3.99,position: 2,category: 'Games'}]});
This event is triggered whenever an order or transaction is initiated after the customer or visitor clicks on the checkout button. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the order ID or transaction ID, whichever is applicable |
| String | Contains the store or affiliation details from where the transaction was started |
| Number | Contains the details of the revenue with the discount and coupons factored in |
| Number | Contains the revenue associated with the transaction, excluding the shipping and tax details |
| Number | Contains the shipping cost associated with the order or transaction |
| Number | Contains the total tax associated with the order or the transaction |
| Number | Contains the total discount associated with the transaction |
| String | Contains details of the transaction coupon which can be redeemed with the transaction |
| String | Contains the currency code associated with an order or transaction |
| Array | Contains the list of products in the order or transaction |
| String | Contains the product ID displayed on the list |
| String | Contains the SKU of the product being viewed |
| String | Contains the category of the product being viewed |
| String | Contains the name of the product being viewed |
| String | Contains the name of the brand associated with the product |
| String | Contains information of the variant associated with the product |
| Number | Contains the price of the product being viewed |
| Number | Contains the quantity of the product |
| String | Contains information on the coupon code associated with a product |
| Number | Contains the position of the product in the product list |
| String | Contains the URL of the product page |
| String | Contains the image URL of the product |
An example of the Checkout Started event is as shown:
rudderanalytics.track('Checkout Started', {order_id: '1234',affiliation: 'Apple Store',value: 20,revenue: 15.00,shipping: 22,tax: 1,discount: 1.5,coupon: 'ImagePro',currency: 'USD',products: [{product_id: '123',sku: 'G-32',name: 'Monopoly',price: 14,quantity: 1,category: 'Games',url: 'https://www.website.com/product/path',image_url: 'https://www.website.com/product/path.jpg'},{product_id: '345',sku: 'F-32',name: 'UNO',price: 3.45,quantity: 2,category: 'Games'}]});
This event is triggered whenever a checkout step is viewed. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the checkout transaction ID |
| Number | Contains the number associated with the checkout process step |
| String | Contains the information associated with the chosen shipping method |
| String | Contains the payment method information |
An example of the Checkout Step Viewed event is as shown:
rudderanalytics.track('Checkout Step Viewed', {checkout_id: '123',step: 1,shipping_method: 'DHL',payment_method: 'Mastercard'});
This event is triggered whenever a checkout step is completed. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the checkout transaction ID |
| Number | Contains the number associated with the checkout process step |
| String | Contains the information associated with the chosen shipping method |
| String | Contains the payment method information |
An example of the Checkout Step Completed event is as shown:
rudderanalytics.track('Checkout Step Completed', {checkout_id: '123',step: 1,shipping_method: 'DHL',payment_method: 'Mastercard'});
This event is triggered whenever payment information is successfully entered to complete an order or transaction. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the checkout transaction ID |
| String | An optional string that contains the order ID |
| Number | Contains the number associated with the checkout process step |
| String | Contains the information associated with the chosen shipping method |
| String | Contains the payment method information |
An example of the Payment Info Entered event is as shown:
rudderanalytics.track('Payment Info Entered', {checkout_id: '12344',order_id: '123'});
This event is triggered whenever an order or transaction is updated. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the order ID or transaction ID, whichever is applicable |
| String | Contains the store or affiliation details from where the transaction was started |
| Number | Contains the details of the revenue with the discount and coupons factored in |
| Number | Contains the revenue associated with the transaction, excluding the shipping and tax details |
| Number | Contains the shipping cost associated with the order or transaction |
| Number | Contains the total tax associated with the order or the transaction |
| Number | Contains the total discount associated with the transaction |
| String | Contains details of the transaction coupon which can be redeemed with the transaction |
| String | Contains the currency code associated with an order or transaction |
| Array | Contains the list of products in the order or transaction |
| String | Contains the product ID displayed on the list |
| String | Contains the SKU of the product being viewed |
| String | Contains the category of the product being viewed |
| String | Contains the name of the product being viewed |
| String | Contains the name of the brand associated with the product |
| String | Contains information of the variant associated with the product |
| Number | Contains the price of the product being viewed |
| Number | Contains the quantity of the product |
| String | Contains information on the coupon code associated with a product |
| Number | Contains the position of the product in the product list |
| String | Contains the URL of the product page |
| String | Contains the image URL of the product |
An example of the Order Updated event is as shown:
rudderanalytics.track('Order Updated', {order_id: '1234',affiliation: 'Apple Store',value: 20,revenue: 15.00,shipping: 22,tax: 1,discount: 1.5,coupon: 'ImagePro',currency: 'USD',products: [{product_id: '123',sku: 'G-32',name: 'Monopoly',price: 14,quantity: 1,category: 'Games',url: 'https://www.website.com/product/path',image_url: 'https://www.website.com/product/path.jpg'},{product_id: '345',sku: 'F-32',name: 'UNO',price: 3.45,quantity: 2,category: 'Games'}]});
This event is triggered whenever an order is completed successfully. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the checkout ID |
| String | Contains the order ID or transaction ID, whichever is applicable |
| String | Contains the store or affiliation details from where the transaction was started |
| Number | Contains the order total after discounts but not including the taxes and shipping charges |
| Number | Contains the details of the revenue with the discount and coupons factored in |
| Number | Contains the revenue associated with the transaction, excluding the shipping and tax details |
| Number | Contains the shipping cost associated with the order or transaction |
| Number | Contains the total tax associated with the order or the transaction |
| Number | Contains the total discount associated with the transaction |
| String | Contains details of the transaction coupon which can be redeemed with the transaction |
| String | Contains the currency code associated with an order or transaction |
| Array | Contains the list of products in the order or transaction |
| String | Contains the product ID displayed on the list |
| String | Contains the SKU of the product being viewed |
| String | Contains the category of the product being viewed |
| String | Contains the name of the product being viewed |
| String | Contains the name of the brand associated with the product |
| String | Contains information of the variant associated with the product |
| Number | Contains the price of the product being viewed |
| Number | Contains the quantity of the product |
| String | Contains information on the coupon code associated with a product |
| Number | Contains the position of the product in the product list |
| String | Contains the URL of the product page |
| String | Contains the image URL of the product |
An example of the Order Completed event is as shown:
rudderanalytics.track('Order Completed', {checkout_id: '12345',order_id: '1234',affiliation: 'Apple Store',total: 20,revenue: 15.00,shipping: 22,tax: 1,discount: 1.5,coupon: 'ImagePro',currency: 'USD',products: [{product_id: '123',sku: 'G-32',name: 'Monopoly',price: 14,quantity: 1,category: 'Games',url: 'https://www.website.com/product/path',image_url: 'https://www.website.com/product/path.jpg'},{product_id: '345',sku: 'F-32',name: 'UNO',price: 3.45,quantity: 2,category: 'Games'}]});
This event is triggered whenever an order is refunded. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the order or transaction ID |
An example of the Order Refunded event is as shown:
rudderanalytics.track('Order Refunded', {order_id: '1234',total: 20,currency: 'USD',products: [{product_id: '123',sku: 'G-32',name: 'Monopoly',price: 17,quantity: 1,category: 'Games',url: 'https://www.website.com/product/path',image_url: 'https://www.website.com/product/path.jpg'},{product_id: '345',sku: 'F-32',name: 'UNO',price: 3,quantity: 1,category: 'Games'}]});
This event is triggered whenever an order is canceled. The following properties are supported by this event:
Property Name | Type | Description of the Property |
| String | Contains the order ID or transaction ID, whichever is applicable |
| String | Contains the store or affiliation details from where the transaction was started |
| Number | Contains the details of the revenue with the discount and coupons factored in |
| Number | Contains the revenue associated with the transaction, excluding the shipping and tax details |
| Number | Contains the shipping cost associated with the order or transaction |
| Number | Contains the total tax associated with the order or the transaction |
| Number | Contains the total discount associated with the transaction |
| String | Contains details of the transaction coupon which can be redeemed with the transaction |
| String | Contains the currency code associated with an order or transaction |
| Array | Contains the list of products in the order or transaction |
| String | Contains the product ID displayed on the list |
| String | Contains the SKU of the product being viewed |
| String | Contains the category of the product being viewed |
| String | Contains the name of the product being viewed |
| String | Contains the name of the brand associated with the product |
| String | Contains information of the variant associated with the product |
| Number | Contains the price of the product being viewed |
| Number | Contains the quantity of the product |
| String | Contains information on the coupon code associated with a product |
| Number | Contains the position of the product in the product list |
| String | Contains the URL of the product page |
| String | Contains the image URL of the product |
An example of the Order Cancelled event is as shown:
rudderanalytics.track('Order Cancelled', {order_id: '1234',affiliation: 'Apple Store',total: 20,revenue: 15.00,shipping: 22,tax: 1,discount: 1.5,coupon: 'ImagePro',currency: 'USD',products: [{product_id: '123',sku: 'G-32',name: 'Monopoly',price: 14,quantity: 1,category: 'Games',url: 'https://www.website.com/product/path',image_url: 'https://www.website.com/product/path.jpg'},{product_id: '345',sku: 'F-32',name: 'UNO',price: 3.45,quantity: 2,category: 'Games'}]});
To know more about the RudderStack eCommerce spec, feel free to contact us or start a conversation on our Slack channel. You can also request a demo to see RudderStack in action.