Difference between revisions of "ATC/Current/SDK/Identify"
From Genesys Documentation
m (Text replacement - "\|Platform=([^\|]*)GenesysEngage-onpremises([\|]*)" to "|Platform=$1GenesysEngage-cloud$2") |
(Published) |
||
Line 2: | Line 2: | ||
|Standalone=No | |Standalone=No | ||
|DisplayName=identify | |DisplayName=identify | ||
− | |||
|TocName=identify | |TocName=identify | ||
+ | |Context=Learn how to use the <tt>identify</tt> method to add information to a customer record. | ||
+ | |Dimension=DevTracking | ||
|ComingSoon=No | |ComingSoon=No | ||
− | | | + | |Platform=PureConnect, GenesysCloud, GenesysEngage-cloud |
− | |||
|Section={{Section | |Section={{Section | ||
|sectionHeading=Description | |sectionHeading=Description | ||
− | |||
− | |||
|alignment=Vertical | |alignment=Vertical | ||
|structuredtext=The <tt>identify</tt> method adds information to a customer record. | |structuredtext=The <tt>identify</tt> method adds information to a customer record. | ||
− | {{NoteFormat|<tt>identify</tt> | + | {{NoteFormat|<tt>identify</tt> affects the next web event sent using the <tt>{{Link-SomewhereInThisVersion|manual=SDK|topic=Pageview}}</tt> or <tt>{{Link-SomewhereInThisVersion|manual=SDK|topic=Record}}</tt> method.|}} |
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Signature | |sectionHeading=Signature | ||
− | |||
− | |||
|alignment=Vertical | |alignment=Vertical | ||
|structuredtext=<tt>ac('identify', [loginId], [traits], [callback])</tt> | |structuredtext=<tt>ac('identify', [loginId], [traits], [callback])</tt> | ||
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Arguments | |sectionHeading=Arguments | ||
− | |||
− | |||
|alignment=Vertical | |alignment=Vertical | ||
|structuredtext=*[[#loginID|loginId]] | |structuredtext=*[[#loginID|loginId]] | ||
*[[#traits|traits]] | *[[#traits|traits]] | ||
*[[#callback|callback]] | *[[#callback|callback]] | ||
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
|sectionHeading=login | |sectionHeading=login | ||
|anchor=login | |anchor=login | ||
− | |||
− | |||
|alignment=Vertical | |alignment=Vertical | ||
− | |structuredtext=*Description: | + | |structuredtext=*'''Description:''' ID used to stitch customer identities together |
− | *Type: | + | *'''Type:''' String/null |
− | *Status: | + | *'''Status:''' Required |
− | *Note: If loginId is null, the current identity | + | *'''Note:''' If loginId is null, the current identity is cleared. |
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
|sectionHeading=traits | |sectionHeading=traits | ||
|anchor=traits | |anchor=traits | ||
− | |||
− | |||
|alignment=Vertical | |alignment=Vertical | ||
− | |structuredtext=*Description: | + | |structuredtext=*'''Description:''' Information about a customer |
− | *Type: | + | *'''Type:''' Object |
− | *Status: | + | *'''Status:''' Optional |
− | *Restrictions: | + | *'''Restrictions:''' Flat object with properties of type string, number, or Boolean |
− | For more information about how to link different customer records | + | For more information about how to link different customer records, see {{Link-SomewhereInThisVersion|manual=SDK|topic=Traits_mapper|display text=Traits mapper.}} |
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
|sectionHeading=callback | |sectionHeading=callback | ||
|anchor=callback | |anchor=callback | ||
− | |||
− | |||
|alignment=Vertical | |alignment=Vertical | ||
− | |structuredtext=*Description: | + | |structuredtext=*'''Description:''' Callback |
− | *Type: | + | *'''Type:''' Function |
− | *Status: | + | *'''Status:''' Optional |
− | |||
|Status=No | |Status=No | ||
}} | }} | ||
}} | }} |
Revision as of 19:31, December 16, 2020
This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.
Learn how to use the identify method to add information to a customer record.
Description
The identify method adds information to a customer record.
Signature
ac('identify', [loginId], [traits], [callback])
Arguments
login
- Description: ID used to stitch customer identities together
- Type: String/null
- Status: Required
- Note: If loginId is null, the current identity is cleared.
traits
- Description: Information about a customer
- Type: Object
- Status: Optional
- Restrictions: Flat object with properties of type string, number, or Boolean
For more information about how to link different customer records, see Traits mapper.
callback
- Description: Callback
- Type: Function
- Status: Optional
Comments or questions about this documentation? Contact us for support!