Closed astorm closed 10 years ago
We fixed this in a previous commit. We output this in the context JSON, and read directly from the Magneto module version number. The context JSON is generated here.
public function getContextJson()
{
$renderer = $this->getLayout()->createBlock('segment_analytics/json')
->setData(array(
'library'=> array(
'name'=>'analytics-magento',
'version'=>(string) Mage::getConfig()->getNode()->modules->Segment_Analytics->version
)));
return $renderer->toJsonString();
}
Specifically, we're grabbing the version with
Mage::getConfig()->getNode()->modules->Segment_Analytics->version