diff --git a/usersync/cookie.go b/usersync/cookie.go index e5de606955c..51474afdd7c 100644 --- a/usersync/cookie.go +++ b/usersync/cookie.go @@ -248,7 +248,9 @@ func (cookie *Cookie) UnmarshalJSON(b []byte) error { cookie.optOut = cookieContract.OptOut cookie.birthday = cookieContract.Birthday - if !cookie.optOut { + if cookie.optOut { + cookie.uids = nil + } else { cookie.uids = cookieContract.UIDs }