Hi all, we are trying to implement growtbook JS SD...
# ask-questions
o
Hi all, we are trying to implement growtbook JS SDK. We are struggling to understand how to implement user attribute sync automatically. Our product analytics and orchestration tool is Segment and database is Redshift. Appreciate if someone can share the documentation. cc: @busy-vegetable-48560
f
Hi Sercan - what kind of attributes are you looking to sync?
Are they things that require a separate lookup of your events?
o
Hi sorry I saw your message now. We are trying to sync user level attributes, not events. Like total order completed? What is the solution for doing it. Main goal is to experiment with specific customers lets say who have 4 completed orders. This is also available within the database. Does query function solve it?
f
you can do it with remote evaluation
those are never the easiest things to segment by
o
What does remote evaluation mean? How can we do it dynamically?
f
with remote evaluation, an identifier is sent as a request to an end point, and them you can look up any information about that user, then return the flag states
it doesn't really matter where the lookup is done, but you will need to lookup those transactional states for the user
o
@fresh-football-47124 when attributes are set via
growthbook.setAttributes
call , is GrowthBook storing these values in server? Do we need to set these attributes in every session?
f
I believe you do always have to set it, but I'm not too sure with the remote evaluation