Question

In the new browser sdk can we set the user properties by passing object ?

  • 23 May 2023
  • 2 replies
  • 82 views

Badge +1

In the new Browser SDK to set multiple user properties we need to call .set() method multiple times … is it possible that we directly pass the user properties object.


2 replies

Userlevel 5
Badge +9

You should be able to use object array splitting @Vishal . The example here shows how to do this for Event Properties…but, splitting also seems to be possible on User Properties (just had a look in the UI!) so you should be able to use the same logic there.

https://help.amplitude.com/hc/en-us/articles/9623000954907-Cart-analysis-Use-object-arrays-to-drive-behavioral-insights

 

Badge +1

Hi @dangrainger thanks for you reply,
But I don’t think we are on same page … I want to do this on SDK side not on the dashboard, is it possible to do it with sdk while setting user properties ?

Reply