Changing the SDID Timeout with sdidParamExpiry
The sdidParamExpiry configuration lets you change the default SDID expiration interval when passing that ID from one page to another using the appendSupplementalDataIDTo
helper function. By default, the ID service code on the receiving page has 30 seconds to get the SDID from the URL sent by the referring page. If the ID service code on the receiving page can’t retrieve the SDID in less than 30 seconds it requests a new SDID. This functionality is mainly for A4T customers who need to pass the SDID from one page to another and want control over this timeout interval.
If you need to change the default SDID timeout, add sdidParamExpiry
to the Visitor.getInstance
function with the following syntax:
Syntax: sdidParamExpiry: *
time in seconds*
Code Sample
When configured your ID service code could look similar to this sample. This sample sets the SDID timeout to 15 seconds.
var visitor = Visitor.getInstance ("Insert Experience Cloud organization ID here",{
...
//Change the default SDID timeout to 15 seconds
sdidParamExpiry: 15
});
//Get current supplemental data id
var theCurrentSDID = visitor._supplementalDataIDCurrent ? visitor._supplementalDataIDCurrent : "";
//Call helper method to append SDID to the Page B URL from Page A
var pageB = "www.domain.com/pageB";
var pageBWithSdid = visitor.appendSupplementalDataIDTo(pageB, theCurrentSDID));
Experience Cloud Services
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more