Closed ianstormtaylor closed 10 years ago
Our current logic works similar to your scenario. For example, when some product was added to the shopping cart we register this event and then check for the events when the footer is being rendered. If an event/events has been found - we insert a corresponding JS tracking code.
ah nice that sounds good! closing now
Not sure if this is possible in Magento, but it could be potentially cool to just be able to push events on to a queue and have a footer that just renders any existing events in the queue. So that the code in the other pages could simply track events, and not have to worry about how it's rendered.
Not sure if that makes sense or not here.