cold-london-76468
08/01/2025, 3:54 PMexperiment_started
event is being triggered on random pages across our site, not just on the intended experiment page(s).
• The experiment is configured to run only for registered users, but it is also being triggered for leads (unregistered users).
Questions:
• Is it possible for GrowthBook to trigger the experiment_started
event on pages outside of the specified targeting rules, or for users who do not meet the targeting criteria (e.g., leads)?
• Or does this indicate a misconfiguration on our end, and such behavior should not be possible if GrowthBook is set up correctly?
We want to make sure we are not missing anything in our setup. Any guidance or clarification would be greatly appreciated!
Thank you!helpful-application-7107
08/04/2025, 10:44 AMcold-london-76468
08/04/2025, 3:34 PM<@U052WVA1MH6>/growthbook-react
version 1.5.1
• Environment: React SSR application with Node.js backend
• API Host: <https://growthbook-api.scentbird.com>
User Attributes Configuration
We set the following attributes in our GrowthBook instance:
await gb.setAttributes({
growthBookUid, // Hash attribute
loggedIn, // Boolean: true for registered users, false for leads
id: personalInfo?.id, // User ID (only for logged-in users)
email: personalInfo?.email, // Email (only for logged-in users)
country, // User country
isE2ETest, // Testing flag
...personalInfo?.analyticsMetadata || {}, // Additional metadata
})
Targeting Configuration
For the problematic experiment `queue-page-rudder-stack`:
- Targeting condition: subscriptionStatus = PAYING
- URL targeting: No URL restrictions set
- Traffic allocation: 50% (A) 50% (B)
- Hash attribute: userIdcold-london-76468
08/04/2025, 3:37 PMcold-london-76468
08/04/2025, 3:38 PMcold-london-76468
08/04/2025, 3:39 PMhelpful-application-7107
08/06/2025, 10:44 AMawait gb.setAttributes({
growthBookUid, // Hash attribute
loggedIn, // Boolean: true for registered users, false for leads
id: personalInfo?.id, // User ID (only for logged-in users)
email: personalInfo?.email, // Email (only for logged-in users)
country, // User country
isE2ETest, // Testing flag
...personalInfo?.analyticsMetadata || {}, // Additional metadata
})
Need to match those being used in the targeting.
Your hash attribute is id
, so it should only use those for whom id: personalInfo?.id
exists, but I don't see subscriptionStatus
being set in the attributes.