To check if data tags are set, you can visit the Audience > All Users page and see the Tags column or Exporting User Data. If you see tags set, but not new tags, then you may have too many and might need to upgrade your account.
There are a few reasons why tags may not be set listed below. In all cases, our SDKs provide a
getTags Method to check the current tags set on the device and reset them if needed.
The most common reason for tags not showing on a device is due to unstable or no network connection where the request to update the tags does not make it to OneSignal.
Android Mobile SDKs will cache data tags and will retry adding the tag upon detecting a stable internet connection.
iOS Mobile SDKs provides a callback for you to handle this case.
Web SDK, the user must be subscribed before the tag is added to the device record. Once the user registers, the tags will automatically be sent to our server as long as the page session is the same (the user has not navigated to another page).
Web SDK - If the person leaves the page before the tags are set, they will not get the tags.
When web subscribers clear their browser data/cookies/cache it destroys the push records for al sites that user is subscribed under. OneSignal provides a feature to automatically resubscribe the user upon returning to the site with our SDK, but this will not add the tags back unless some additional steps are taken. See What happens when I clear browser cookies? for more details.
If you are having issues, plug the device into your IDE and use our
setLogLevelSDK method set to Verbose. Then attempt to reproduce the issue you are seeing. This will help log any issues to your IDE console to debug.
Updated about 1 year ago