Ecommerce

This section provides several examples of tracking Ecommerce related user interactions.

Checkout option

Usually a user can make a choice in a checkout step. For example:

  • Choose your payment method
  • Chooes your shipping method
  • Choose your way of registering

It can be interesting to track these options. The process usually works as follows:

  1. The funnelstep is tracked
  2. The user makes a choice

These are two different actions, so you will have to use a seperate event to track the checkout option.

harvest.trackEvent({
    "event":"dataview",
    "data": {
        "funnelName": "Checkout",
        "funnelStep": "Shipping information",
        "checkoutOption": "Shipping method",
        "checkoutOptionValue":"DHL"
    }
});

The following information is required:

  1. A configured funnelstep with a funnelstep type that is a checkout step.
  2. The correct funnelName and funnelStep combination
  3. A checkoutOption, which indicates the option the value is for
  4. A checkoutOptionValue, which tells us the option that was chosen