Difference between revisions of "ATC/Current/SDK/Display icons in the Journey gadget"
From Genesys Documentation
(Published) |
(Published) |
||
Line 3: | Line 3: | ||
|DisplayName=Display icons in the Journey gadget | |DisplayName=Display icons in the Journey gadget | ||
|TocName=Display icons in the Journey gadget | |TocName=Display icons in the Journey gadget | ||
− | |Context=Learn how to use the SDK to display icons for tracked | + | |Context=Learn how to use the SDK to display icons for tracked visitor behavior on the Journey map. |
|Dimension=DevTracking | |Dimension=DevTracking | ||
|ComingSoon=No | |ComingSoon=No | ||
Line 13: | Line 13: | ||
|Media=Image | |Media=Image | ||
|image=IconColors.png | |image=IconColors.png | ||
− | |structuredtext=Use the <code>{{Link-SomewhereInThisVersion|manual=SDK|topic=Record|display text=ac('record')}}</code> method to display a {{MINTYDOCSPRODUCT}} icon on the {{Link-SomewhereInThisVersion|manual=AdminGuide|topic=Customer_journey_map}} when a | + | |structuredtext=Use the <code>{{Link-SomewhereInThisVersion|manual=SDK|topic=Record|display text=ac('record')}}</code> method to display a {{MINTYDOCSPRODUCT}} icon on the {{Link-SomewhereInThisVersion|manual=AdminGuide|topic=Customer_journey_map}} when a visitor completes a tracked behavior. |
===Available icons=== | ===Available icons=== | ||
Line 27: | Line 27: | ||
|structuredtext=[[File:ShoppingCartEx.png]] | |structuredtext=[[File:ShoppingCartEx.png]] | ||
− | This code example shows how to use <code>{{Link-SomewhereInThisVersion|manual=SDK|topic=Record|display text=ac('record')}}</code> to display the {{Link-SomewhereInThisVersion|manual=SDK|topic=Display_icons_in_the_Journey_gadget|anchor=PurchaseIcons|display text=Product added}} icon in the {{Link-SomewhereInThisVersion|manual=AdminGuide|topic=Customer_journey_map}} when a | + | This code example shows how to use <code>{{Link-SomewhereInThisVersion|manual=SDK|topic=Record|display text=ac('record')}}</code> to display the {{Link-SomewhereInThisVersion|manual=SDK|topic=Display_icons_in_the_Journey_gadget|anchor=PurchaseIcons|display text=Product added}} icon in the {{Link-SomewhereInThisVersion|manual=AdminGuide|topic=Customer_journey_map}} when a visitor adds a t-shirt to their shopping cart.<source lang="javascript"> |
ac('record', 'product_added', [optionalExtraDataObject] | ac('record', 'product_added', [optionalExtraDataObject] | ||
ac('record', 'product_added', { name: 't-shirt', id: 'hkds9d8j', price: '$45.45' }); | ac('record', 'product_added', { name: 't-shirt', id: 'hkds9d8j', price: '$45.45' }); |
Revision as of 15:15, December 17, 2020
This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.
Contents
Learn how to use the SDK to display icons for tracked visitor behavior on the Journey map.
About the icons
Use the ac('record')
method to display a Genesys Predictive Engagement icon on the Visit journey map (admin view) when a visitor completes a tracked behavior.
Available icons
Code example
This code example shows how to use
ac('record')
to display the Product added icon in the Visit journey map (admin view) when a visitor adds a t-shirt to their shopping cart.ac('record', 'product_added', [optionalExtraDataObject]
ac('record', 'product_added', { name: 't-shirt', id: 'hkds9d8j', price: '$45.45' });
Purchase-related icons
Form-related icons
Important
You can display the icons in this section using ac('record')
or auto form tracking.Icon | Tooltip text | Description | Name |
---|---|---|---|
![]() |
Form submitted | Visitor submitted a form. | "form_submitted" |
![]() |
Form abandoned | Visitor navigated away from a form before completing it. | "form_abandoned" |
Miscellaneous icons
Comments or questions about this documentation? Contact us for support!