worried-planet-2191
10/04/2022, 10:11 AMfuture-teacher-7046
future-teacher-7046
dazzling-quill-18166
10/04/2022, 10:19 AMsetAttributes . id is being generated with the use of this formula
[...Array(30)].map(() => Math.random().toString(36)[2]).join("")dazzling-quill-18166
10/04/2022, 10:20 AMfuture-teacher-7046
dazzling-quill-18166
10/04/2022, 10:23 AMgrowthbook.setAttributes({
"id": Cookies.get('guestId'),
"loggedIn": true,
"deviceId": "abcdef123456",
"employee": true,
"company": "acme",
"country": "US",
"browser": navigator.userAgent,
"url": router.pathname,
})dazzling-quill-18166
10/04/2022, 10:23 AMidfuture-teacher-7046
growthbook.evalFeature("test-feature")
Specifically the "source" property of the returned object.future-teacher-7046
dazzling-quill-18166
10/04/2022, 10:39 AMdazzling-quill-18166
10/04/2022, 10:40 AMdazzling-quill-18166
10/04/2022, 10:40 AMguestIdfuture-teacher-7046
dazzling-quill-18166
10/04/2022, 11:28 AMdazzling-quill-18166
10/04/2022, 11:40 AMtraffic split Im getting variationId = 0 when triggering growthBook.evalFeature('test-feature')dazzling-quill-18166
10/04/2022, 11:41 AMguestId from cookies so that my script can assign a new one