Difference between revisions of "ATC/Current/SDK/Method reference"
From Genesys Documentation
m (Text replacement - "\|Platform=([^\|]*)GenesysEngage-onpremises([\|]*)" to "|Platform=$1GenesysEngage-cloud$2") |
(Published) |
||
Line 3: | Line 3: | ||
|DisplayName=Method reference | |DisplayName=Method reference | ||
|TocName=Method reference | |TocName=Method reference | ||
− | |Context=View a list of | + | |Context=View a list of methods available in the Journey JavaScript SDK. |
|ComingSoon=No | |ComingSoon=No | ||
− | |Platform=GenesysEngage-cloud | + | |Platform=PureConnect, GenesysCloud, GenesysEngage-cloud |
− | |||
|Section={{Section | |Section={{Section | ||
|sectionHeading=Initialization methods | |sectionHeading=Initialization methods | ||
− | |||
|alignment=Vertical | |alignment=Vertical | ||
− | + | |structuredtext=For more information about a method, including signature and arguments, click the method's name. | |
− | |||
− | |structuredtext=For | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
{{!}}- | {{!}}- | ||
Line 20: | Line 16: | ||
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{#mintydocs_link:topic=Init|link text=init}} | {{!}}{{!}}{{#mintydocs_link:topic=Init|link text=init}} | ||
− | {{!}}{{!}}Initializes the Journey JavaScript SDK | + | {{!}}{{!}}Initializes the Journey JavaScript SDK. |
{{!}}- | {{!}}- | ||
{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=initialized}} | {{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=initialized}} | ||
− | {{!}}Notifies when the Journey JavaScript SDK is fully | + | {{!}}Notifies when the Journey JavaScript SDK is initialized fully. |
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{#mintydocs_link:topic=Destroy|link text=destroy}} | {{!}}{{!}}{{#mintydocs_link:topic=Destroy|link text=destroy}} | ||
− | {{!}}{{!}}Stops all Journey JavaScript SDK activity and removes all tracking information | + | {{!}}{{!}}Stops all Journey JavaScript SDK activity and removes all tracking information. |
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
Line 35: | Line 29: | ||
|anchor=SessionMethods | |anchor=SessionMethods | ||
|alignment=Vertical | |alignment=Vertical | ||
− | + | |structuredtext=For more information about a method, including signature and arguments, click the method's name. | |
− | |||
− | |structuredtext=For | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
{{!}}- | {{!}}- | ||
Line 44: | Line 36: | ||
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=api.session.getData}} | {{!}}{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=api.session.getData}} | ||
− | {{!}}{{!}}Returns an object that contains session information | + | {{!}}{{!}}Returns an object that contains session information. |
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=api.session.getCustomerCookieId}} | {{!}}{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=api.session.getCustomerCookieId}} | ||
− | {{!}}{{!}}Returns a string that contains the customer cookie | + | {{!}}{{!}}Returns a string that contains the customer cookie ID. |
{{!}}- | {{!}}- | ||
{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=api.session.getId}} | {{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=api.session.getId}} | ||
− | {{!}}Returns a string containing session | + | {{!}}Returns a string containing session ID. |
{{!}}}<br /> | {{!}}}<br /> | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
Line 59: | Line 49: | ||
|anchor=TrackingMethods | |anchor=TrackingMethods | ||
|alignment=Vertical | |alignment=Vertical | ||
− | + | |structuredtext=For more information about a method, including signature and arguments, click the method's name. | |
− | |||
− | |structuredtext=For | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
{{!}}- | {{!}}- | ||
Line 68: | Line 56: | ||
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{#mintydocs_link:topic=Pageview|link text=pageview}} | {{!}}{{!}}{{#mintydocs_link:topic=Pageview|link text=pageview}} | ||
− | {{!}}{{!}}Tracks page views | + | {{!}}{{!}}Tracks page views. |
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{#mintydocs_link:topic=Record|link text=record}} | {{!}}{{!}}{{#mintydocs_link:topic=Record|link text=record}} | ||
− | {{!}}{{!}}Records custom website events | + | {{!}}{{!}}Records custom website events. |
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{#mintydocs_link:topic=Identify|link text=identify}} | {{!}}{{!}}{{#mintydocs_link:topic=Identify|link text=identify}} | ||
− | {{!}}{{!}}Adds information to a customer | + | {{!}}{{!}}Adds information to a customer. |
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{#mintydocs_link:topic=Forms:track|link text=forms:track}} | {{!}}{{!}}{{#mintydocs_link:topic=Forms:track|link text=forms:track}} | ||
{{!}}{{!}} | {{!}}{{!}} | ||
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
Line 86: | Line 72: | ||
|anchor=EventsMethods | |anchor=EventsMethods | ||
|alignment=Vertical | |alignment=Vertical | ||
− | + | |structuredtext=For more information about a method, including signature and arguments, click the method's name. | |
− | |||
− | |structuredtext=For | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
{{!}}- | {{!}}- | ||
Line 101: | Line 85: | ||
{{!}}- | {{!}}- | ||
{{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=off}} | {{!}}{{Link-SomewhereInThisVersion|manual=SDK|topic=off}} | ||
− | {{!}}Unsubscribes from notifications about a particular type of Journey JavaScript SDK activity | + | {{!}}Unsubscribes from notifications about a particular type of Journey JavaScript SDK activity. |
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
Line 110: | Line 92: | ||
|anchor=UtilityMethods | |anchor=UtilityMethods | ||
|alignment=Vertical | |alignment=Vertical | ||
− | + | |structuredtext=For more information about a method, click the method's name. | |
− | |||
− | |structuredtext=For | ||
{{{!}} class="wikitable" | {{{!}} class="wikitable" | ||
{{!}}- | {{!}}- | ||
Line 120: | Line 100: | ||
{{!}}{{!}} | {{!}}{{!}} | ||
{{Link-SomewhereInThisManual|topic=serialize}}<br /> | {{Link-SomewhereInThisManual|topic=serialize}}<br /> | ||
− | {{!}}{{!}} | + | {{!}}{{!}}Passes serialized data from a form. |
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{Link-SomewhereInThisManual|topic=dom_-_ready}}<br /> | {{!}}{{!}}{{Link-SomewhereInThisManual|topic=dom_-_ready}}<br /> | ||
− | {{!}}{{!}}Allows you specify a function handler to run when the DOM has fully | + | {{!}}{{!}}Allows you to specify a function handler to run when the DOM has loaded fully. |
{{!}}- | {{!}}- | ||
{{!}}{{!}}{{Link-SomewhereInThisManual|topic=debug}}<br /> | {{!}}{{!}}{{Link-SomewhereInThisManual|topic=debug}}<br /> | ||
{{!}}{{!}}Sends helpful messages to the console. | {{!}}{{!}}Sends helpful messages to the console. | ||
{{!}}} | {{!}}} | ||
− | |||
− | |||
|Status=No | |Status=No | ||
}} | }} | ||
}} | }} |
Revision as of 19:51, December 16, 2020
This topic is part of the manual Journey JavaScript SDK for version Current of Genesys Predictive Engagement.
Contents
View a list of methods available in the Journey JavaScript SDK.
Initialization methods
For more 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 initialized fully. |
destroy | Stops all Journey JavaScript SDK activity and removes all tracking information. |
Session methods
For more 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 more 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 more 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 more information about a method, click the method's name.
Method | Description |
Passes serialized data from a form. | |
dom - ready |
Allows you to specify a function handler to run when the DOM has loaded fully. |
debug |
Sends helpful messages to the console. |
Comments or questions about this documentation? Contact us for support!