Skip to content

Instantly share code, notes, and snippets.

@chexton
Created September 16, 2013 07:50
Show Gist options
  • Select an option

  • Save chexton/6577732 to your computer and use it in GitHub Desktop.

Select an option

Save chexton/6577732 to your computer and use it in GitHub Desktop.
magento-id.js
<script type="text/javascript">
<?php if(Mage::getSingleton('customer/session')->isLoggedIn()) {
$email = Mage::getSingleton('customer/session')->getCustomer()->getEmail(); ?>
_veroq.push(['user', {id: '<?php echo $email; ?>', email: '<?php echo $email; ?>', }]);
<?php } ?>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment