Hello, <@U01T6HCHD0A> and <@U05RYUXPVNU>. I attend...
# ask-questions
m
Hello, @fresh-football-47124 and @brief-honey-45610. I attended the office hours and mentioned the Multiple exposure warning in our experiments. This is an experiment we are running. We have a NextJS application and are using client components for it. Our code looks like this in _app.js:
Copy code
setPolyfills({
  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 information
f
what attribute are you using for assignment, and what attribute are you using for the experiment report?
👀 1
m
The assignment is the anonymous id
How do I see the attribute in the experiment report?
I see
user_pseudo_id
in the queries
Hello @fresh-football-47124, any thoughts ?
I guess I will give up on this 🫠
f
Hi Yesi
sorry for the delay- didn't see your ping
feel free to dm me and I'll help you get sorted
🙌 1