Closed sparsons-gh closed 8 months ago
Hi @sparsons-gh. This is intended behavior and expected by our backend. I'm going to close out this issue, but feel free to re-open or open a new issue if you notice any problems with the data flowing to the backend correctly.
Braze Web SDK Version
4.7.2
Integration Method
CDN
Browser
Chrome
Steps To Reproduce
Invoke the
setCustomUserAttribute
with a string or an array of strings.Example 1 (array of strings):
.getUser().setCustomUserAttribute('some-attribute', ['first-value', 'second-value']);
events
arrayExample 2 (string:
.getUser().setCustomUserAttribute('some-attribute', 'first-value, second-value');
attributes
arrayExpected Behavior
We expect the behavior to be similar between the type data types,
string
andstring[]
- we expect that the data should be in eitherevents
orattributes
for both types, preferably theattributes
array.Actual Incorrect Behavior
As explained above, when a
string[]
is used as the value tosetCustomUserAttribute
, the data is included in theevents
array, and conversely, when astring
is used as a the value, the data winds up in theattributes
array.Verbose Logs
No response
Additional Information
No response