...
Firing Events on External Websites
If you have implemented a custom checkout using our REST APIs you may want to fire events when the customer adds items to their cart and initiates the checkout process to help drive the funnel information on the analytics dashboard. Below are example of firing events when UC Analytics is loaded on the page.
Add Items
Code Block | ||||
---|---|---|---|---|
| ||||
window.ucaEvent(
{
"event": "add items",
"items": [
{
"itemId": "SKU_1",
"quantity": 1
},
{
"itemId": "SKU_2",
"quantity": 1
}
]
}
);
|
Initiate Checkout
Code Block | ||||
---|---|---|---|---|
| ||||
window.ucaEvent(
{
"event": "initiate checkout",
"items": [
{
"itemId": "SKU_1",
"quantity": 1
},
{
"itemId": "SKU_2",
"quantity": 1
}
]
}
); |
Dashboard Widgets
There are currently three different types of widgets related to UltraCart Analytics that you can place on your dashboard.
...