When I explicitly set my tracking preferences in the EU window.analytics.user().traits() returns my preferences as expected.
However, when I implicitly consent to all tracking, my preferences are not saved to window.analytics.user().traits() instead they're saved to a tracking-preferences cookie. I'm curious why the consent manager does not mutate the object returned from window.analytics.user().traits()?
Does segment analytics v2 parse the tracking-preferences cookie in addition to the window.analytics.user().traits()?
HI @j-quelly sorry for the delay, the information will be saved on two places like the next image:
for you second question, no, analytics v2 read all the cookies set on the page and search the preferences with a different name. You can check this file to see that
When I explicitly set my tracking preferences in the EU
window.analytics.user().traits()
returns my preferences as expected.However, when I implicitly consent to all tracking, my preferences are not saved to
window.analytics.user().traits()
instead they're saved to atracking-preferences
cookie. I'm curious why the consent manager does not mutate the object returned fromwindow.analytics.user().traits()
?Does segment analytics v2 parse the
tracking-preferences
cookie in addition to thewindow.analytics.user().traits()
?