In the window.sizolutionData.sizolutionAction
function (YOU should create it if you want we call it), we will pass the following data on the relevant events:
(each event will also have additional fields: "puid": string
(puid - user's id you pass in sizolutionData
object) and if there is A/B-test "ab_group": string
). Some events which can produce button updating can contain "button_text"
field – it's text which placed in the button.
Button display for new user
{"action":"show_button","type":"select_sizes"}
Button display for existed user without recommendation
{"action":"show_button","type":"open_recommendations"}
Button display for existed user with recommendation
{"action":"show_button","type":"your_size", "size": sizeId}
Widget was updated with product which is not recognised and button was updated with empty text
{"action":"show_button","type":"empty"}
NEW! Initial fit is done
More about schema of object user, fit и product are here
{"action":"initial_fit", "state": {user: {...}, fit: {...}, product:{...} } }
Opening a widget
{"action":"open_widget","type":"select_sizes" | "open_recommendations" | "your_size"}
Closing the widget on the "Your Body Measurements" page(the first page)
{"action":"close_widget","type":"Info"}
Closing the widget on the page "Your figure"
{"action":"close_widget","type":"FigureType"}
Closing the widget on the "Waist and Hips" page
{"action":"close_widget","type":"WaistHips"}
Closing the widget on the "Age" page
{"action":"close_widget","type":"Age"}