Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagejs
titleAdd Items Event
window.ucaEvent(
  {
    "event": "add items",
    "items": [
      {
        "itemId": "SKU_1",
        "quantity": 1
      },
      {
        "itemId": "SKU_2",
        "quantity": 1
      }
    ]
  }
);


Initiate Checkout

Code Block
languagejs
titleInitiate Checkout
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. 

...