Difference between revisions of "ATC/Current/SDK/Method reference"
From Genesys Documentation
DannaShirley (talk | contribs) (Published) |
DannaShirley (talk | contribs) (Published) |
||
Line 20: | Line 20: | ||
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{#mintydocs_link:topic=Init|link text=init}} | {{!}}{{!}}{{#mintydocs_link:topic=Init|link text=init}} | ||
− | {{!}}{{!}}Initializes the {{ | + | {{!}}{{!}}Initializes the Journey JavaScript SDK |
+ | {{!}}- | ||
+ | {{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=initialized}} | ||
+ | {{!}}Notifies when the Journey JavaScript SDK is fully initialized. | ||
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{#mintydocs_link:topic=Destroy|link text=destroy}} | {{!}}{{!}}{{#mintydocs_link:topic=Destroy|link text=destroy}} | ||
− | {{!}}{{!}}Stops all | + | {{!}}{{!}}Stops all Journey JavaScript SDK activity and removes all tracking information |
{{!}}} | {{!}}} | ||
+ | |structuredtextwide= | ||
+ | |FAQHeading= | ||
+ | |Status=No | ||
+ | }}{{Section | ||
+ | |sectionHeading=Session methods | ||
+ | |anchor=SessionMethods | ||
+ | |alignment=Vertical | ||
+ | |Media= | ||
+ | |image= | ||
+ | |structuredtext=For complete information about a method, including signature and arguments, click the method's name. | ||
+ | {{{!}} class="wikitable" | ||
+ | {{!}}- | ||
+ | {{!}}{{!}}'''Method''' | ||
+ | {{!}}{{!}}'''Description''' | ||
+ | {{!}}- | ||
+ | {{!}}{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=api.session.getData}} | ||
+ | {{!}}{{!}}Returns an object that contains session information | ||
+ | {{!}}- | ||
+ | {{!}}{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=api.session.getCustomerCookieId}} | ||
+ | {{!}}{{!}}Returns a string that contains the customer cookie Id | ||
+ | {{!}}- | ||
+ | {{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=api.session.getId}} | ||
+ | {{!}}Returns a string containing session Id | ||
+ | {{!}}}<br /> | ||
|structuredtextwide= | |structuredtextwide= | ||
|FAQHeading= | |FAQHeading= | ||
Line 56: | Line 83: | ||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
− | |sectionHeading= | + | |sectionHeading=Events methods |
− | |anchor= | + | |anchor=EventsMethods |
|alignment=Vertical | |alignment=Vertical | ||
|Media= | |Media= | ||
Line 67: | Line 94: | ||
{{!}}{{!}}'''Description''' | {{!}}{{!}}'''Description''' | ||
{{!}}- | {{!}}- | ||
− | {{!}}{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic= | + | {{!}}{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=on}} |
− | {{!}}{{!}} | + | {{!}}{{!}}Subscribes to notifications about a particular type of Journey JavaScript SDK activity. |
{{!}}- | {{!}}- | ||
− | {{!}}{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic= | + | {{!}}{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=once}} |
− | {{!}}{{!}} | + | {{!}}{{!}}Subscribes to notifications for first event for a particular type of Journey JavaScript SDK activity. |
{{!}}- | {{!}}- | ||
− | {{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic= | + | {{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=off}} |
− | {{!}} | + | {{!}}Unsubscribes from notifications about a particular type of Journey JavaScript SDK activity |
− | {{!}}} | + | {{!}}} |
|structuredtextwide= | |structuredtextwide= | ||
|FAQHeading= | |FAQHeading= | ||
Line 104: | Line 131: | ||
|FAQHeading= | |FAQHeading= | ||
|Status=No | |Status=No | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
}} | }} |
Revision as of 10:08, June 10, 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 Journey JavaScript SDK |
initialized | Notifies when the Journey JavaScript SDK is fully initialized. |
destroy | Stops all Journey JavaScript SDK activity and removes all tracking information |
Session methods
For complete information about a method, including signature and arguments, click the method's name.
Method | Description |
api.session.getData | Returns an object that contains session information |
api.session.getCustomerCookieId | Returns a string that contains the customer cookie Id |
api.session.getId | Returns a string containing session Id |
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 |
Events methods
For complete information about a method, including signature and arguments, click the method's name.
Method | Description |
on | Subscribes to notifications about a particular type of Journey JavaScript SDK activity. |
once | Subscribes to notifications for first event for a particular type of Journey JavaScript SDK activity. |
off | Unsubscribes from notifications about a particular type of Journey JavaScript SDK activity |
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. |
Comments or questions about this documentation? Contact us for support!