MCPcopy Create free account
hub / github.com/DavidWells/analytics / getPersistedUserData

Function getPersistedUserData

packages/analytics-core/src/modules/user.js:49–55  ·  view source on GitHub ↗
(storage)

Source from the content-addressed store, hash-verified

47}
48
49export function getPersistedUserData(storage) {
50 return {
51 userId: storage.getItem(USER_ID),
52 anonymousId: storage.getItem(ANON_ID),
53 traits: storage.getItem(USER_TRAITS)
54 }
55}
56
57export const tempKey = (key) => PREFIX + 'TEMP' + PREFIX + key
58

Callers 2

analyticsFunction · 0.90
getUserPropFuncFunction · 0.85

Calls 1

getItemMethod · 0.80

Tested by

no test coverage detected