Skip to content
$ npm i --save logrocket
// Code:
import LogRocket from 'logrocket';
LogRocket.init('dfgcwv');
var customerOrders = null || [];
var customerData = {
id: "",
email: "",
name: "",
phone: "",
totalSpent: "",
customerOrders: customerOrders.length,
};
if (customerData.id !== '') {
window.LogRocket && window.LogRocket.identify(customerData.id, customerData);
}