Baskets & Orders: Where to store Tracking Code?
Posted: Mon Feb 25, 2008 1:15 pm
In the past, I utilized Coupons to track where our customers were coming from (e.g. Catalog, Affiliates, Paid Search, etc.). However, in the near future, management would like to combine offers (e.g. 5% off web order + free express shipping upgrade).
What I'm thinking of doing is adding two tables: 1) cst_TrackingCodes 2) cst_TrackingCodeCoupons. The tracking codes will be associated with 0 or more coupons that all get applied when the tracking code is captured.
I need to associate the Tracking Code that is captured with the final order so it can be exported to our order management system. What I'm struggling with is where to store the initial tracking code. My initial thought was in the CustomFields table. However, it looks like AC7 changed the way it stores "Baskets" and "Orders". In AC5.5, "Baskets" and "Orders" were all stored in the same table. Now it appears they are seperated. If that is the case, how do I link the Tracking Code to the final order? I need it to be 100% reliable, so storing the value in a cookie until checkout will not work.
Ideas? Thanks, Sam.
What I'm thinking of doing is adding two tables: 1) cst_TrackingCodes 2) cst_TrackingCodeCoupons. The tracking codes will be associated with 0 or more coupons that all get applied when the tracking code is captured.
I need to associate the Tracking Code that is captured with the final order so it can be exported to our order management system. What I'm struggling with is where to store the initial tracking code. My initial thought was in the CustomFields table. However, it looks like AC7 changed the way it stores "Baskets" and "Orders". In AC5.5, "Baskets" and "Orders" were all stored in the same table. Now it appears they are seperated. If that is the case, how do I link the Tracking Code to the final order? I need it to be 100% reliable, so storing the value in a cookie until checkout will not work.
Ideas? Thanks, Sam.