Show Menu
TOPICS×

cookieLifetime

Questa variabile consente di ignorare la durata predefinita del cookie AMCV.
Per impostazione predefinita, i cookie del servizio Experience Cloud ID scadono dopo 24 mesi. L'intervallo di tempo deve essere impostato in secondi.
Sintassi:
cookieLifetime: *
durata in secondi
*
Esempio di codice
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 changes expiration period to 12-months. cookieLifetime:31536000 });