Tracking Basket Events
When tracking basket events every single change of the basket must be tracked. It is important to include all the places that the user can change the content of the basket, for instance:
- When adding a product from a product list
- When removing a product from a product list
- When adding a product from the product page
- When removing from the "onsite" mini-basket
- When clearing the basket on the basket page
- When decreasing the number of items
- When removing a product from the basket
At every of these events, a "basket" event must be fired, with a comma separated list of product id's in the "basketcontent" column
Example: Keeping track of the basket content
Product 12345 is added to an empty basket:
raptor.trackEvent('basket','','','','','','','','','12345');
2 more products are added to the basket:
raptor.trackEvent('basket','','','','','','','','','12345,456'); raptor.trackEvent('basket','','','','','','','','','12345,456,789');
Product 456 is removed from the basket:
raptor.trackEvent('basket','','','','','','','','','12345,789');
The basket is cleared:
raptor.trackEvent('basket'); //or raptor.trackEvent('basket','','','','','','','','','');
FAQ:
Is the "basket" event supposed to be fired when the basket page is loaded or visited?
No. The products must be tracked whenever they ar added or removed from the basket, not when the basket page is opened.
Should I track the same product twice in "basketcontent", if the user has put 2 of the same items in the basket?
No. Just 1 tracking pr product.
Is the order of products in "basketcontent" important?
No. It has no influence on the system.
I have comma's in my product id's. What should I do?
Choose another seperator, and inform Raptor Support
We have a Basket Id. When should that be tracked?
Please include basket id in all trackings, on the position assigned to the basket id in the tracking script.
Comments
0 comments
Please sign in to leave a comment.