getShopper()

Gets the current shopper attributes and events.
fera.push('getShopper', {
callback: function(shopper) {
console.log("Current shopper:", shopper); // See below for expected result
}
});

Sample Response

{
customer_id: "customer-123",
name: "John Doe",
email: "john.doe@example.com",
country_code: "US",
region_name: "California",
city_name: "Orange County",
zip: "78730",
favorite_color: "red",
shirt_size: "medium",
timeline_events: [
{ event_name: "page_view", title: "Cool Stuff Page", url: "https://www.example.com" }
]
}

To see what attributes you will likely get in the shopper object response see: