idSyncAttachIframeOnWindowLoad

此選用的布林值標幟可控制 Experience Cloud Identity 服務載入 ID 同步 iFrame 的方式。

語法: idSyncAttachIframeOnWindowLoad= true|false`` (預設為 false)。

idSyncAttachIframeOnWindowLoad: true 時,ID 服務會在視窗載入時載入 ID 同步 iFrame。依預設,ID服務會盡可能快速載入ID同步iFrame,而非在視窗載入時載入。

程式碼範例

var visitor = Visitor.getInstance ("Insert Experience Cloud organization ID here",{ 
   trackingServer: "Insert tracking server here here",  //Same as s.trackingServer 
   trackingServerSecure: "Insert secure tracking server here",  //Same as s.trackingServerSecure 
 
   //For CNAME support only. Exclude these variables if you're not using CNAME 
   marketingCloudServer: "Insert tracking server here", 
   marketingCloudServerSecure: "Insert secure tracking server here", 
 
   //Function variable. Example loads ID sync iFrame on window load instad of ASAP. 
   idSyncAttachIframeOnWindowLoad: true 
});

本頁內容