You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also it would be great to look if other methods in the JS tracker may be affected and if so, also fix these, so that all methods could accept numbers/strings as one would expect an easy to use API to do 👍
The text was updated successfully, but these errors were encountered:
tsteur
changed the title
JS Tracker: setUserId should work when User ID is a number
JS Tracker: setUserId and addEcommerceItem sku should work when User ID is a number
Nov 7, 2019
Calling
setUserId
with a number instead of a string, results in the call tosetUserId
being ignored.Reproduce with the following code:
We expected same result as:
But instead, the User id
1234
was not set and silently ignored.A fix would be to simply allow numbers, something like this probably:
Note:
The text was updated successfully, but these errors were encountered: