<script type="text/javascript">
_cio.identify({
id: 'prod_287',
email: 'user@domain.com',
created_at: 1339438758,
first_name: 'John',
});
</script>
echo Yii::app()->customer->getModel()->getFullName();
<?php $customer = Yii::app()->customer->getModel();?>
<script type="text/javascript">
_cio.identify({
id: 'prod_287',
email: '<?php echo $customer->email;?>',
created_at: '<?php echo strtotime($customer->date_added);?>',
first_name: '<?php echo $customer->first_name;?>',
});
</script>
Yii::app()->hooks->addAction('layout_footer_html', function($controller){
echo "Added this in footer, called from: " . get_class($controller);
}, 10);