Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

context traits behave differently to mobile Analytics SDKs #379

Closed
jparksecurity opened this issue Feb 15, 2022 · 3 comments
Closed

context traits behave differently to mobile Analytics SDKs #379

jparksecurity opened this issue Feb 15, 2022 · 3 comments

Comments

@jparksecurity
Copy link

The context doesn't have a trait when a user is signed in. Is it intended or simply a missing feature?

The same issue is documented in the old repo: segmentio/analytics.js#656

@pooyaj
Copy link
Contributor

pooyaj commented Feb 17, 2022

Hi @jparksecurity! This is intended feature of AJS, and it is different from how the mobile SDKs behave. Here is more info: https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/identity/#saving-traits-to-the-context-object ( last paragraph in the section talks about how to include traits in every track call )

@jparksecurity
Copy link
Author

@pooyaj Thank you for the response! I'd look into the reference.

@alexsullivan-pi
Copy link

@pooyaj I'm sorry to reopen this issue, but I'm very confused about how traits work on the web now. From my testing, it appears that traits show up only when you supply them for each tracking call. But if that's the case, then what is the value of providing traits for the identify call? And what's the value of traits in general? I think I'm missing something but I'm not getting much clarity from the referenced article.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants