idSyncAttachIframeOnWindowLoad 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
});
recommendation-more-help
9c9e8ca9-9f7e-42c9-a5d5-a0d82776362a