**Field** | -**Type** | -**Description** | +Field | +Type | +Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
`active` | Boolean | @@ -140,7 +142,7 @@ Context is a dictionary of extra information that provides useful context aboutObject | dictionary of information about the current application, containing `name`, `version` and `build`.
- This is collected automatically from our mobile libraries when possible. + This is collected automatically from the mobile libraries when possible. |
||||||||||||||||||||||||||
`page` | Object | -Dictionary of information about the current page in the browser, containing `path`, `referrer`, `search`, `title` and `url`. This is automatically collected by [Analytics.js](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/#context--traits). + | Dictionary of information about the current page in the browser, containing `path`, `referrer`, `search`, `title` and `url`. This is automatically collected by [Analytics.js](/docs/connections/sources/catalog/libraries/website/javascript/#context--traits). | ||||||||||||||||||||||||||
Field | +Code (Example) | +Schema (Example) | +
---|---|---|
Object (Context): Flatten | ++ +``` json +context: { + app: { + version: "1.0.0" + } +} +``` + | +
+ Column Name: + context_app_version + + Value: + "1.0.0" + |
+
Object (Traits): Flatten | ++ +```json +traits: { + address: { + street: "6th Street" + } +} +``` + + | +
+Column Name: +address_street + +Value: +"6th Street" + |
+
Object (Properties): Stringify | ++ +```json +properties: { + product_id: { + sku: "G-32" + } +} +``` + | +
+ Column Name: + product_id + Value: + "{sku.'G-32'}" + |
+
Array (Any): Stringify | ++ +```json +products: { + product_id: [ + "507f1", "505bd" + ] +} +``` + + | +
+ Column Name: + product_id + Value: + "[507f1, 505bd]" + |
+
Field | -Code (Example) | -Schema (Example) | -
---|---|---|
Object (Context): Flatten | -- -``` json -context: { - app: { - version: "1.0.0" - } -} -``` - | -
- Column Name: - context_app_version - - Value: - "1.0.0" - |
-
Object (Traits): Flatten | -- -```json -traits: { - address: { - street: "6th Street" - } -} -``` - - | -
-Column Name: -address_street - -Value: -"6th Street" - |
-
Object (Properties): Stringify | -- -```json -properties: { - product_id: { - sku: "G-32" - } -} -``` - | -
- Column Name: - product_id - Value: - "{sku.'G-32'}" - |
-
Array (Any): Stringify | -- -```json -products: { - product_id: [ - "507f1", "505bd" - ] -} -``` - - | -
- Column Name: - product_id - Value: - "[507f1, 505bd]" - |
-