Use an Object tag (beta). One tag holds several named fields for a user, for example the last order with its amount and status, so you can build a segment on both. A List of objects tag does the same for many orders per user.
How to set it up
- Go to the Tags page and click Create tag.
- Enter the Tag name, for example
order. - In Value type, choose Object (one order per user) or List of objects (all orders).
- Under Fields, add each field and choose its type, for example
amountas Price or Integer andstatusas String. Click Add field for more. - Click Create.
Your developers then write the values for each user through the Object tags API.
Segment by the fields
Each field is a tag named tag.field, such as order.amount and order.status. Build segment conditions on these fields, not on the object tag itself, using the operators of the field type. For a List of objects tag, conditions on the same list joined with AND must match the same order, so "amount of 100 or more AND status paid" finds users with one order that is both.
Good to know
- Object tags are in beta. If your account doesn't have them enabled yet, contact your account manager or Pushwoosh Support.
- An object holds 1 to 20 fields, and the Control Panel creates tags without nested objects. Create nested objects through the API.
- Object tags are always stored per user, not per device.
Learn more: Types of tags
Comments
0 comments
Please sign in to leave a comment.