cookieDomain cookiedomain

多部分、頂級網域需要此變數,其中 URL 最後 2 個部分的其中一個部分大於兩個字元。

語法: cookieDomain: " *URL*" (前置詞 www 非必要)。

使用案例

  • 必填:www.example.com.uk
  • 非必要:www.example.co.uk

程式碼範例

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
   cookieDomain:"example.com.uk"
});
recommendation-more-help
9c9e8ca9-9f7e-42c9-a5d5-a0d82776362a