init

From Genesys Documentation
Jump to: navigation, search
This topic is part of the manual Journey JavaScript SDK for version Current of Altocloud.

Learn how to use the init method to initialize the Journey JavaScript SDK.

Description

The init method initializes the Altocloud SDK.


Important
For GDPR compliance, be sure to obtain a customer's consent before you call the init method. For more information about how to use Altocloud in a GDPR-compliant manner, see GDPR.


Signature

ac('init', organisationId, options)


Arguments

organizationId



options

Tip
For detailed explanations of how you can use these options to configure tracking, see Advanced tracking with cookies.
  • Description: configures the Journey JavaScript SDK with its region and other known default options.
  • Type: object
  • Status: required
  • Properties:
Name Description Type Status Default
region Your organization's region. Find your region ID String Required  
cookieDomain Sets a custom cookie domain String Optional Highest level domain possible
cookieExpires Sets a time in seconds for a customer's cookie to expire Number Optional 31536000 (1 year)
cookiePrefix Sets a custom cookie prefix String Optional  
autoLink An array of domains whose outbound links will be modified to contain tracking information. For an example, see Configure advanced tracking. Array of strings Optional  
allowedLinkers An array of domains whose inbound referral will set tracking information. For an example, see Configure advanced tracking. Array of strings Optional  
canonicalLink Uses canonical links Boolean Optional False
globalTraitsMapper Maps custom attributes to traits For more information, see Traits Mapper. Array Optional  

Find your org ID and region ID

1

Go to PureCloud > Admin > Tracking Snippet.
Retrieved from "https://all.docs.genesys.com/ATC/Current/SDK/Init (2020-05-29 20:57:29)"