SDK Reference - setUserTags
React native
Flutter
Swift
Kotlin
The setUserTags method updates the tags of the user.
These user tags will be visible on the user page within the IAPHUB dashboard, providing valuable insights.
Furthermore, leveraging user tags in a smart listing allows customizing the products for sale based on the user tags
Please keep the following guidelines in mind when working with tags:
- Tags must be created on the IAPHUB dashboard; otherwise, the method will throw an error.
- Ensure that when creating a tag on the IAPHUB dashboard, you select the option to allow editing the tag from the client.
Otherwise, editing will only be possible using the IAPHUB API from your server. - Tag keys are limited to 32 characters.
- Tag values are limited to 64 characters.
You can remove a tag by passing an empty string as the value.
Example
await Iaphub.setUserTags({status: 'vip'});
React Native
Flutter
Swift
Kotlin
Parameters
ObjectUser tags
Response
This method does not return any response.