This code will check if email
Add following code to the footer of both Desktop and Mobile templates.
<script> var cusemail = '%%GLOBAL_CurrentCustomerEmail%%'; var cusorder = '%%GLOBAL_OrderId%%'; if(cusemail != ''){ $crisp.push(["set", "user:email", ["%%GLOBAL_CurrentCustomerEmail%%"]]); $crisp.push(["set", "user:nickname", ["%%GLOBAL_CurrentCustomerFirstName%% %%GLOBAL_CurrentCustomerLastName%%"]]); } if(cusorder != ''){ $crisp.push(["set", "session:data", ["Order", "%%GLOBAL_OrderId%%"]]); } $crisp.push(["set", "session:segments", [["moddiy"]]]); </script>