I've the following data in my local storage:
[{
"event": "addToCart",
"eventLabel": "Test Product",
"ecommerce": {
"currencyCode": "USD",
"add": {
"products": [{
"name": "Test Product",
"id": "78789",
"price": "429.00",
"category": "Catalog Page",
"list": "Massage\/Massage Chairs\/Portable Massage Chairs",
"quantity": "1"
}]
}
}
}]
and I need to access to the value of ecommerce. So obtaining the following data:
"ecommerce": {
"currencyCode": "USD",
"add": {
"products": [{
"name": "Test Product",
"id": "78789",
"price": "429.00",
"category": "Catalog Page",
"list": "Massage\/Massage Chairs\/Portable Massage Chairs",
"quantity": "1"
}]
}
}
How can I do it?