Hello, Issue: not seeing traits data in track() af...
# support
b
Hello, Issue: not seeing traits data in track() after identify() After making an identify call as follows: identify(null, {email:'joe@example.com', properties{listId 'someId', subscribe: true, consent: 'email'}} (it subscribes to a list and I would like to use the email address in the successive calls to track API). When making a track call (e.g. Product Added) I would expect the traits to be sent as defined in the identify call but instead I see context.traits: {} I do see there is the rl_trait cookie (but can't see its content as it s encrypted). Am I missing something? Thanks!
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
h
why are you passing null?
h
@billions-house-776 please send a proper value as
userId
instead of
null
.
h
@billions-house-776, Also, if you do not have a user ID yet, you should be sending
undefined
instead of
null
to skip that argument.
b
passing undefined fixed the issue (inherited this code, don't know why null was used...). Thanks!
🙌 1