Skip to content

Measurements

With this integration, users can send their measurements over to the online store. With this integration the measurements are sent via the onMeasurements callback and the payload will contain the measurements.

With this integration, a button will be added to the target element on the page that allows the user to share their measurements with one click when authenticated.

Instructions on how to load and configure the script are available in the Linking the Script section.

Usage

To use the "measurements" integration, make sure to use type: "measurements" in the configuration options.

Data

With this integration, the onMeasurements callback will be called when the measurements are sent.

Data Structure

The returned data object contains the sizes of the user in the .measurements object, alongside some metadata and IDs for future reference. The measurement object contains all values in millimeters. The .name is the user-supplied name for that particular measurement but can also be left empty.

{
  "_id": "643f93915324d8053e8b82fc",
  "_userId": "d80533915324d8053915324a",
  "name": "Anna",
  "updatedAt": "2023-04-19T08:00:00.132Z",
  "createdAt": "2023-04-19T07:09:05.670Z",
  "measurements": {
    "height": 1123,
    "chest": 123,
    "thigh": 123,
    "low_waist": 123,
    "waist": 123
  },
  "body": "female"
}

Measurements Example

...
onMeasurements: measurements => {
    // measurements =
    // {
    //   "_id": "643f93915324d8053e8b82fc",
    //   ...
    // }
}
...

Flow

flowchart LR
    A[Customer] --> B(Online Store)
    B --> C{Existing Choozr User?}
    C -->|Yes, logged in| D[One Click]
    C -->|Yes, not logged in| E[Scan QR]
    C -->|No| E[Scan QR]
    E --> G[Measurements]
    D --> G