Hello, when users clear browser cache/cookies/history, it basically removes the data from their browser. When they return to the site, they have push permissions enabled so we automatically resubscribe the device to the site which creates a new player_id record: https://documentation.onesignal.com/docs/browser-behavior
Currently the best way to resolve this is to identify when the user “logs in” to the site and do the following:
1 – re-send us the tags according to what you have in your database: https://documentation.onesignal.com/docs/add-user-data-tags
2 – set the “external user id” on the device, which should also be your database user id: https://documentation.onesignal.com/docs/external-user-ids
We are currently transitioning to identify “users” so tags will persist as long as you identify the user with “external user id” BUT this is planned for later this year. Adding it now will help “future proof” your site to have this data.
If you have any further questions, please reach our support team directly at support@onesignal.com