Skip to content

[Content]:  #4148

@lizkane222

Description

@lizkane222

What article on segment.com/docs is affected?

https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/querystring/#:~:text=ajs_aid,call.

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

Metadata

Metadata

Assignees

Labels

contentWhen the bug is about content that needs to get fixedtriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions