The locale object (deprecated)
If you have a presence in multiple countries and/or your site supports multiple locales, then locale information must be sent in events data. This information can either be included in the value object (as described here) or in the page object.
This object is deprecated. For current specifications, refer to the page object.
The following table lists the attributes in the deprecated locale
object:
Name |
Type |
Description |
---|---|---|
|
string |
Required. A two-character code representing a language. Example: |
|
string |
Required. Two-character code representing a country. Example: |
|
string |
Optional. A three-character code representing a currency. Example: |
The following is an example of an event that includes the deprecated locale
object:
{
"type": "a2c",
"name": "pdp",
"value": {
"products":[{
"sku": "191258",
}],
"locale":{
"lg": "fr",
"co": "ca",
"cy": "cad",
},
}
}