Skip to main content

Configuration

There are a few configuration options when creating a node source instance:

const { instance } = createSourceNode({
consent: {
functional: true,
},
custom: {
foo: 'bar',
},
destinations: {
log: {
type: 'log',
push: console.log,
},
},
globalsStatic: {
version: '3.1.4',
},
onError: (error) => {
console.error('node source', error);
},
onLog: (message) => {
console.log('node source', message);
},
source: {
type: 'server',
id: '',
previous_id: '',
},
verbose: true,
});
OptionTypeDescription
consentobjectInitial consent states
customobjectIndividual information
destinationsobjectDestinations that might process the events
globalsStaticobjectStatic values for the globals that persist new runs
onErrorfunctioncustom error handler
onLogfunctioncustom logging for the verbose mode
sourceobjectTo define the events origin (type, id, previous_id)
verbosebooleanTo enable verbose mode
info

If you need professional support with your walkerOS implementation, check out our services.