rhythmic-morning-61672
07/12/2024, 9:58 PM{
"changeId": "33ebe0084e37e6d4ebc64a320b2f00510291115ec92178e81b61125a1bd40b83",
"status": "running",
"hashVersion": 2,
"hashAttribute": "customerNumber",
"urlPatterns": [
{
"include": true,
"type": "simple",
"pattern": "<http://localhost:4200/home>"
}
],
"meta": [
{
"key": "0",
"name": "Control"
},
{
"key": "1",
"name": "Variation 1"
},
{
"key": "2",
"name": "Variation 2"
},
{
"key": "3",
"name": "Variation 3"
},
{
"key": "4",
"name": "Variation 4"
},
{
"key": "5",
"name": "Variation 5"
}
],
"filters": [],
"seed": "sticky_test4",
"name": "sticky_test4",
"phase": "0",
"coverage": 1
}
customerNumber
is my logged-in id, so it won't always be present in my user attributes. I also have an anonymous id (anonId
) that always appears in the user attributes and is being used as my fallback attribute.
My understanding is that if customerNumber
isn't present (aka the user is logged out), my anonId
will then be used to evaluate the experiment; however, I'm getting this error message in my Debug Log:
> > Skip because missing hashAttribute
After reading the docs, my expectation is that the fallback attribute would take the place of the hash attribute and I shouldn't get this error.
Something else to note is that if I create an experiment using the anonId
as the primary attribute instead of the customerNumber
, the experiment works fine, so it's not an issue with setting the user attributes incorrectly.
Any help would be appreciated because I can't find any information about this error or that the fallback can't be used as a hash attribute.happy-autumn-40938
07/16/2024, 8:11 PMfallbackAttribute
defined anywhere? I'm not seeing it in the definition you pasted aboverhythmic-morning-61672
07/16/2024, 9:03 PMfallbackAttribute
when setting up the experiment. I had a coworker sanity check me while I did it. At one point, fallbackAttribute: ''
showed up in the settings, but then it went away shortly after. It seems buggy and random if it shows up and I've never had it show up similar to the hashAttribute
where it should be fallbackAttribute: 'anonId'
rhythmic-morning-61672
07/16/2024, 9:06 PMhappy-autumn-40938
07/16/2024, 9:18 PMpowerful-journalist-78283
07/19/2024, 6:49 PMhappy-autumn-40938
07/19/2024, 6:58 PMfallbackAttribute
defined?powerful-journalist-78283
07/19/2024, 7:03 PMhappy-autumn-40938
07/19/2024, 9:37 PMpowerful-journalist-78283
07/19/2024, 9:48 PMhappy-autumn-40938
07/19/2024, 10:05 PMhappy-autumn-40938
07/19/2024, 10:06 PMpowerful-journalist-78283
07/19/2024, 10:06 PMpowerful-journalist-78283
07/19/2024, 10:06 PMconst gb = useMemo(() => {
return new GrowthBook({
apiHost: GB_API_HOST,
clientKey: GB_CLIENT_KEY,
trackingCallback: onExperimentView,
decryptionKey: GB_DECRYPTION_KEY,
stickyBucketService: new BrowserCookieStickyBucketService({
jsCookie: Cookies,
}),
enableDevMode: true
});
}, []);
happy-autumn-40938
07/19/2024, 10:06 PMBrowserCookieStickyBucketService
from @growthbook/growthbook
?happy-autumn-40938
07/19/2024, 10:07 PMpowerful-journalist-78283
07/19/2024, 10:08 PMpowerful-journalist-78283
07/19/2024, 10:09 PMpowerful-journalist-78283
07/19/2024, 10:09 PMpowerful-journalist-78283
07/19/2024, 10:09 PMpowerful-journalist-78283
07/19/2024, 10:10 PMhappy-autumn-40938
07/19/2024, 10:11 PMhappy-autumn-40938
07/19/2024, 10:11 PMpowerful-journalist-78283
07/19/2024, 10:13 PMpowerful-journalist-78283
07/19/2024, 10:13 PMhappy-autumn-40938
07/19/2024, 10:14 PMpowerful-journalist-78283
07/19/2024, 10:15 PMhappy-autumn-40938
07/19/2024, 10:22 PMpowerful-journalist-78283
07/19/2024, 10:23 PMhappy-autumn-40938
07/19/2024, 10:39 PMhappy-autumn-40938
07/19/2024, 10:54 PMhappy-autumn-40938
07/19/2024, 10:57 PMhappy-autumn-40938
07/19/2024, 11:06 PMpowerful-journalist-78283
07/19/2024, 11:26 PMpowerful-journalist-78283
07/19/2024, 11:26 PMpowerful-journalist-78283
07/19/2024, 11:27 PMpowerful-journalist-78283
07/19/2024, 11:28 PMsetAttributes({...gb.getAttributes(), user_id: 'xxx'})
as the second callhappy-autumn-40938
07/19/2024, 11:50 PMhappy-autumn-40938
07/19/2024, 11:53 PM_ctx.stickyBucketIdentifierAttributes
(may be obfuscated and not easy)happy-autumn-40938
07/20/2024, 1:40 AMrhythmic-morning-61672
07/23/2024, 5:55 PMsetAttributes
to set the customerNumber.happy-autumn-40938
07/23/2024, 5:59 PMrhythmic-morning-61672
07/23/2024, 6:07 PMhappy-autumn-40938
07/23/2024, 6:08 PMrhythmic-morning-61672
07/23/2024, 6:09 PMbillions-house-96196
07/25/2024, 2:25 PMhappy-autumn-40938
07/25/2024, 3:50 PMbillions-house-96196
08/01/2024, 9:17 PMhappy-autumn-40938
08/01/2024, 11:23 PMrhythmic-morning-61672
08/14/2024, 3:48 PMhappy-autumn-40938
08/14/2024, 4:13 PM