The update method provides an interface to extend values that will be used this Web SDK instance without overwriting existing settings. For example, using the set operation on the user_id field will replace all existing user IDs on the Web SDK instance with the ones provided whereas update will append the ID to the list.

gsght('update', '{field}', {value})
{field}String'user_id'The field that you want to update the value for. See the section below for supported fields
{value}AnytrueThe value to update, supported types and payload vary by field.



Updates the user_ids associated with the current instance of the Web SDK. See the set method reference for more details about the user_id field

gsght('update', 'user_id', [UserPayload])