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:
If you have suggestions for improving this article, let us know!