chexton
3/1/2013 - 5:37 AM

identify script.php

identify script.php

<?php if ( is_user_logged_in() ) { 
  global $current_user;
  get_currentuserinfo();
?> 
<script type="text/javascript">
    _veroq.push(['user', {
      id: '<?php echo $_REQUEST['customer_email']; ?>', 
      email: '<?php echo $_REQUEST['customer_email']; ?>', 
      full_name: '<?php echo $current_user->user_firstname ?>'
    }]);
</script>
<?php } ?>