polite-hairdresser-71510
08/18/2023, 3:38 PMgrowthbook.setAttributes
method in order to implement basic targeting rules. It seems that when I call setAttributes
for a given user, the set attributes do not persist in the next page view. For example, I have a test that I want to only run in the US. When a user lands on the homepage I call setAttributes(country_code: 'US')
. The issue I'm seeing however is on the next page (say the user clicked on an article), attributes is now empty again. I was under the impression that these attributes would be saved in cookies or local storage and persist across the user's experience. Is this not the case? What is the recommended way of handling this.fresh-football-47124
polite-hairdresser-71510
08/21/2023, 4:54 PMgrowthbook.persistAttributes = true
or growthbook.saveAttributesToCookies()
fresh-football-47124
polite-hairdresser-71510
08/21/2023, 5:00 PM