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:
- The funnelstep is tracked
- 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:
- A configured funnelstep with a funnelstep type that is a checkout step.
- The correct funnelName and funnelStep combination
- A checkoutOption, which indicates the option the value is for
- A checkoutOptionValue, which tells us the option that was chosen