Login
Copy
MagicPixel.setCustomerInfo({
phone_number: '<phone number>', // mandatory
country_code: 1, // mandatory
first_name: '<first name if available>', // full name split by space and part[0], optional
last_name: '<last name if available>', // full name split by space and part[1], optional
city: '<lower case city name>', // lower case, no space, optional
state: '<lower case no space state name>', // lower case, no space, optional
country: 'in', // hardcoded to in
});When the user Login and Sign Up page opens, fire the following event
Copy
MagicPixel.recordEvent('mp_login', {
method: 'phone',
ev_source: 'gtm',
is_existing: 'Y' // 'Y' for an existing user and 'N' for a new user
});PreviousPage Load NextEcommerce Events
Last updated 6 minutes ago
