How do I set a delay time for Journey banner to be displayed?

A Journey can be delayed by logging a Pageview after a certain amount of time has elapsed in the Web SDK.

setTimeout(function () {
branch.closeJourney(function (err, data) {
if (err) {
console.log(err, data);
} else {
setTimeout(function () {
/*
This key/value pair is entirely arbitrary.
Its only purpose is to be found by a condition specified in the Branch dashboard.
*/
branch.track('pageview', {
'delay': '10'
});
}, 1000);
}
});
}, 10000);

Did this page help you?