Description
Currently, on Mage_GoogleAnalytics_Block_Ga::_getOrdersTrackingCode() line 105 null is set for the category.
I have made a fix in the Add to cart form to add the category name (when Mage::registry('current_category') is set) so that it gets tracked through the checkout process.
My fix is really hacky but I guess it makes sense to add some generic "tracking_info" field to add any information necessary for conversion tracking (for Google Analytics or any other tool).
For the specific case of GA this field would contain the category (or category path) but it could be something else like "added from wishlist" or "email campaign" or whatever.
I guess the easiest way to do this would be to add an addTrackingInfo() method to catalog/product_view block so it can be manipulated via the layout using some custom helper.
what do you guys think?