in src/init/consented/prepare-permutive.ts [126:151]
identity: isEmpty(user) ? false : !isEmpty(user?.id),
},
});
return cleanPayload;
};
const generatePermutiveIdentities = (
config: PermutivePageConfig,
): Array<{ tag: 'ophan'; id: string }> => {
if (
typeof config.ophan === 'object' &&
typeof config.ophan.browserId === 'string' &&
config.ophan.browserId.length > 0
) {
return [{ tag: 'ophan', id: config.ophan.browserId }];
}
return [];
};
const runPermutive = (
pageConfig: PermutivePageConfig,
permutiveGlobal: Permutive | undefined,
): void => {
try {
if (!permutiveGlobal?.addon) {