Difference between revisions of "ATC/Current/SDK/Method reference"
From Genesys Documentation
DannaShirley (talk | contribs) (Published) |
|||
Line 8: | Line 8: | ||
|Section={{Section | |Section={{Section | ||
|sectionHeading=Initialization methods | |sectionHeading=Initialization methods | ||
− | | | + | |Standalone=No |
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=For complete information about a method, including signature and arguments, click the method's name. | |structuredtext=For complete information about a method, including signature and arguments, click the method's name. | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
Line 27: | Line 27: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Tracking methods | |sectionHeading=Tracking methods | ||
− | | | + | |Standalone=No |
− | | | + | |ComingSoon=No |
+ | |alignment=Vertical | ||
+ | |structuredtext=For complete information about a method, including signature and arguments, click the method's name. | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
{{!}}- | {{!}}- | ||
Line 49: | Line 51: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Utility methods | |sectionHeading=Utility methods | ||
− | | | + | |Standalone=No |
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext=For complete information about a method, click the method's name. | |structuredtext=For complete information about a method, click the method's name. | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
Line 73: | Line 75: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Visit API methods | |sectionHeading=Visit API methods | ||
− | | | + | |Standalone=No |
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext={{{!}} class="wikitable" | |structuredtext={{{!}} class="wikitable" | ||
{{!}}- | {{!}}- | ||
Line 94: | Line 96: | ||
}}{{Section | }}{{Section | ||
|sectionHeading=Customer API methods | |sectionHeading=Customer API methods | ||
− | | | + | |Standalone=No |
+ | |ComingSoon=No | ||
|alignment=Vertical | |alignment=Vertical | ||
− | |||
|structuredtext={{{!}} class="wikitable" style="font-size: 14px;" | |structuredtext={{{!}} class="wikitable" style="font-size: 14px;" | ||
{{!}}- | {{!}}- |
Revision as of 13:34, January 17, 2020
This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.
Contents
View a list of all methods in the Journey JavaScript SDK.
Initialization methods
For complete information about a method, including signature and arguments, click the method's name.
Method | Description |
init | Initializes the Genesys Predictive Engagement SDK |
destroy | Stops all Genesys Predictive Engagement SDK activity and removes all tracking information |
Tracking methods
For complete information about a method, including signature and arguments, click the method's name.
Method | Description |
pageview | Tracks page views |
record | Records custom website events |
identify | Adds information to a customer |
forms:track |
Utility methods
For complete information about a method, click the method's name.
Method | Description |
Used for passing serialized data from a form. | |
dom - ready |
Allows you specify a function handler to run when the DOM has fully loaded. |
debug |
Sends helpful messages to the console. |
Visit API methods
Name | Description |
ac('api.visit.get', callback) |
Performs an AJAX request to retrieve the session data from the Genesys Predictive Engagement server. The object returned contains the most up-to-date data for the session. This is useful for monitoring live data, such as segment assigned IDs, outcome score progress, and last page viewed. |
ac('api.visit.cached', callback) |
Retrieves the cached Genesys Predictive Engagement session data from the browser local storage. If session data does not exist in local storage, a session will be requested via an AJAX request from Genesys Predictive Engagement. This is practical for retrieving data that doesn't change for a session, such as the visit identifier, device details, location, referrer, and marketing campaign information. |
ac('api.visit.getShortId', callback) |
This provides the same functionality as'api.visit.cached', but only the 'shortId' is returned. The short ID is useful as a legible reference number that can be displayed on the website. |
Customer API methods
Name | Description |
ac('api.customer.get', callback) |
This performs an AJAX request to retrieve the visitor data from the Genesys Predictive Engagement server. |
Comments or questions about this documentation? Contact us for support!