microscopic-table-65564
04/26/2024, 6:42 PMsetPolyfills({
SubtleCrypto: crypto.subtle,
});
export const growthbookClient = new GrowthBook({
apiHost: "<https://cdn.growthbook.io>",
clientKey: growthbookClientKey,
enableDevMode: process.env.NODE_ENV === "development",
subscribeToChanges: true,
decryptionKey: growthbookDecryptionKey,
stickyBucketService: new BrowserCookieStickyBucketService({
jsCookie: Cookies,
}),
trackingCallback: (experiment, result) => {
analytics.track(GA4_EXPERIMENT_VIEW, {
experiment_id: experiment.key,
variation_id: result.key,
});
},
});
useEffect(() => {
// Load features async
let isMounted = true;
if (isMounted && isReady && (userId || gaClientId)) {
growthbookClient.setAttributes({
id: gaClientId,
clientId: gaClientId,
url: window.location.href,
language: pageProps?.language || "en",
slug: pageProps?.slug || "",
});
}
if (isMounted && isReady) {
growthbookClient.loadFeatures({ autoRefresh: true });
}
return () => {
isMounted = false;
};
}, [isReady, userId, gaClientId]);
See the attached screenshots for the warning and our bigquery data source configuration.
we are using <@U052WVA1MH6>/growthbook-react": "^0.24.0"
SDK
Please let me know if you need more informationfresh-football-47124
microscopic-table-65564
04/30/2024, 6:16 PMmicroscopic-table-65564
04/30/2024, 6:16 PMmicroscopic-table-65564
04/30/2024, 6:18 PMuser_pseudo_id
in the queriesmicroscopic-table-65564
05/02/2024, 2:41 PMmicroscopic-table-65564
05/14/2024, 6:10 PMfresh-football-47124
fresh-football-47124
fresh-football-47124