# Content Targetting Options not working

**URL:** <https://forum.builder.io/t/content-targetting-options-not-working/1389>\
**Category:** Technical Questions\
**Created:** [November 29, 2021, 11:22pm UTC](https://forum.builder.io/t/content-targetting-options-not-working/1389 "2021-11-29T23:22:52Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)\
**Post date:** [December 1, 2021, 9:54pm UTC](https://forum.builder.io/t/content-targetting-options-not-working/1389/8 "2021-12-01T21:54:03Z")

</div>

@sellandb I can look into why that isnt working. In the meantime, there are a few things you can do to achieve your desired result.

As @aziz mentioned above, content is prioritized by list order in [Builder.io: Visual Development Platform](https://builder.io/content). If you move Homepage - New User above Homepage in the list, then your original query should give you desired result:  
[https://cdn.builder.io/api/v2/content/page?apiKey=d8a6546473bd4f2794811a138f34b99a&userAttributes.urlPath=/&userAttributes.newuser=true&limit=1&fields=id,name,data.newuser](https://cdn.builder.io/api/v2/content/page?apiKey=d8a6546473bd4f2794811a138f34b99a&userAttributes.urlPath=/&userAttributes.newuser=true&limit=1&fields=id,name,data.newuser)

Similarly, if for some reason you don’t want to change the stack order, you can explicitly set the original Homepage to target for newuser=false, I think that should limit which page you see. However I wouldn’t recommend it since it is always best to have a fall back page without any limiting parameters.

As for setUserAttributes, you should be able to just include i

```auto
builder.setUserAttributes({
  urlPath: '/',
  newuser: true
})

```

inside whichever component you are integrating to Builder. You can see an example in the SDK documentation here

> <https://github.com/BuilderIO/builder/tree/main/packages/core>
>
> //github.com/BuilderIO/builder/tree/main/packages/core

Not sure your exact tech stack and setup, but if you are setting the newuser attribute based on say a cookie, you may need to run whatever logic for setting the user attributes within the browser, and you can see examples of how to do that here:

> [@Gatsby Custom Targeting](https://forum.builder.io/t/gatsby-custom-targeting/882):
>
> Hi Steve, Is it possible to use custom targeting using gatsby and cookies? I added 3 pages with similar urlPath and with different whatEverKey values. Then I tried adding this code below somewhere in my code but it’s not filtering my pages. builder.setUserAttributes({ userIsLoggedIn: cookies.get("userIsLoggedIn"), whatEverKey: cookies.get("whatEverKey"), }); It always end up with the page that has no additional targeting aside from urlPath. When I added all 3 pages with a targeting whatE…

---

_[View the full topic](https://forum.builder.io/t/content-targetting-options-not-working/1389)._
