Data Tags FAQ
Get answers to all of your data tag questions
Why are data tags not being set?
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.
How do I reduce the number of data tags my app is using?
- Use our Edit device API to set empty strings on keys of data tags, that are no longer needed.
- Use our Data Tag SDK Methods
deleteTagsmethod in our SDK.
How do I know if I’m using more than my current plans entitlement for data tags?
Export your users and check the "tags" column for all the different tags you have set. Then check
Audience > Subscriptions > Tags column.
What happens to my data tags if am over the plan entitlement?
Your application will continue to have the data tags, you just won't be able to add new ones over the amount set by your plan. If your application continues to try and add data tags, these will fail silently to prevent your application from having to do any error handling and ensure it can continue to function as expected by your user.
Why are data tags not showing on my device?
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.
Offline or Unstable Network Connection
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).
End of Page Session
Web SDK - If the person leaves the page before the tags are set, they will not get the tags.
Clearing Browser Cache
When web subscribers clear their browser data/cookies/cache it destroys the push records for al sites that the 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 4 days ago