This message was deleted.
# ask-questions
w
This message was deleted.
b
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?
140 Views