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.

Important

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

lg

string

Required.

A two-character code representing a language.

Example: "fr"(French).

co

string

Required.

Two-character code representing a country.

Example: "ca" (Canada).

cy

string

Optional.

A three-character code representing a currency.

Example: "cad" (Canadian dollars).

The following is an example of an event that includes the deprecated locale object:

RequestResponse
{
  "type": "a2c",
  "name": "pdp",
  "value": {
    "products":[{
      "sku": "191258",
    }],
    "locale":{
      "lg": "fr",
      "co": "ca",
      "cy": "cad",
    },
  }
}

Do you have some feedback for us?

If you have suggestions for improving this article,