Multimarket | Sending analytics with context
In order to correctly record analytics, the correct context needs to be passed into the feedback API.
Here is the sample for feedback-api, the multi-market part is context where locale region currency should be provided and if not the code will fallback to the default values for these fields.
{
"user": {
"lang": ["en-GB"],
"uid": "test1",
"sid": "ssid",
"email": "[email protected]",
"ip": "192.168.0.1",
"ua": "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
},
"t_client": 1484742065791,
"log": false,
"event": "click-item",
"properties": {
"rid": "r-ea052570-c9a6-4ff1-a5b4-538adb8a1050",
"item_id": "6411354119"
},
"context": { "locale": "en", "region": "SE", "currency": "SEK" }
}
Updated 6 days ago