Magento Module: Jetlore Tracking

A tracking integration to send visitor data to the Jetlore platform.

Details

This module was developed to collect and send Magento visitor data to the Jetlore platform. It was designed to track viewed products and order details which could be applied to campaigns for enriched customer engagement. This module also served as a companion to the Jetlore Ranker module.

Screenshots

N/A

Technical Features

Code Sample

public function collectProductIdsForTranslation(Varien_Event_Observer $observer)
{
    $collection = $observer->getEvent()->getCollection();

    if (Mage::helper('jetlore_tracking')->canTrackSkus()) {
        $this->_idTranslations = array_replace(
            $this->_idTranslations, 
            array_map('current', $collection->toArray(array('sku')))
        );

        Mage::unregister(self::TRANSLATIONS_REGISTRY_KEY);
        Mage::register(self::TRANSLATIONS_REGISTRY_KEY, $this->_idTranslations);
    }
}

Static Analysis