-
Notifications
You must be signed in to change notification settings - Fork 381
Description
What article on segment.com/docs is affected?
What part(s) of the article would you like to see updated?
This information in the doc isn't technically correct, or is at least potentially misleading, because using the word 'call' implies something happens as a result, but technically that's not always true. It returns a value when the function is called, but can also assign the value if slightly modified; both are really useful information to make visible to customers.
Current info :
ajs_aid | The anonymousId to set for the user. | This triggers an analytics.user().anonymousId() call.
What actually occurs when this function is triggered :
Returns current anonymousId value :
analytics.user().anonymousId()
=>'967dca40-48d6-435b-9d44-ef4d32057cf3'
Assigns anonymousId as the value passed in the function
analytics.user().anonymousId('1234-fghj-678')
=>'1234-fghj-678'
The table might be best updated to have the info above included. "This function returns the current anonymousId. When a value is passed, this function sets the anonymousId's value."
Additional information
CSE Liz Kane lkane@twilio.com