Hi team! I am trying to run A/B test on targeted u...
# ask-questions
b
Hi team! I am trying to run A/B test on targeted url.
Copy code
growthbook.setAttributes({
      id: '12345',
      url: window.location.pathname,
 });
But always getting `false`from the feature.
Is there anything else which I am missing. It is working when I am not setting url targeting
c
if you print
window.location.pathname
to console does it return what you are expecting it to be?
I expect it does but that is the equivalent of "is it plugged in" check
b
Copy code
useEffect(() => {
    // Load features asynchronously when the app renders
    growthbook.loadFeatures();
    growthbook.setAttributes({
      id: getGAClientID(),
      url: window?.location?.pathname || "",
    });
  });
how should I run A/B test only on specific urls
any idea?