logoDocument
Search
Login

Using Aliases and Tags: The Core Means for Precision Push

I. Core Concept Explanation

1. Alias: Binding Business ID with Push ID

Aliases are used to establish a one-to-one mapping between the user unique identifier (e.g., userID, phone number, email, etc.) in the business system and the registration ID (registrationID / UID) in the EngageLab push system.

Registration ID is a unique identifier generated by the WebPush or AppPush SDK for each user, used for push message identification. It is usually meaningless to the business side and is not strongly bound to the device.

Core Features:

  • 🧩 One-to-one binding: Each registration ID can only bind to one alias.
  • 🧠 Business recognizability: Uses the original user ID from the business system, facilitating business logic.
  • 🔒 Persistent validity: The binding relationship remains valid unless explicitly unbound.

Application Examples:

  • Order status change notifications (e.g., user123's order has been shipped)
  • Account security notifications (e.g., user456's password has been changed)

2. Tag: Dynamic Grouping Based on Attributes

Tags are used to label users' attributes, behaviors, or statuses, enabling dynamic segmentation and group-based push notifications.

Core Features:

  • 🔁 Many-to-many relationship: A registration ID can have multiple tags, and a tag can correspond to multiple users.
  • 📈 Real-time updates: Supports dynamic addition and removal of tags to respond to user behavior changes.
  • 🧱 Supports multiple dimensions: For example, "VIP member," "inactive for 30 days," "iOS user."

Application Examples:

  • Push activation rewards to "VIP users inactive for 3 consecutive days."
  • Send limited-time reminders to users with items in their shopping cart but not checked out.

II. Why Use Aliases and Tags?

🎯 Problems Solved

EngageLab's push registration ID is automatically generated by the SDK and is not directly related to the business system's users. To achieve business-level precision push, developers need to:

  • ✅ Establish a binding between user ID → registration ID in the business system (using aliases).
  • ✅ Segment users into different groups based on business needs (using tags).

✨ Summary of Core Value

Function Business Value Technical Value
Alias Precision single-user push for order notifications, account alerts Eliminates the need to maintain a mapping between registration ID and business ID
Tag Group operations (VIP, inactive, active users) Avoids the need to develop an independent user segmentation system
Combined Use Build precise audiences by combining region + behavior + attributes Greatly reduces push logic complexity, making maintenance more efficient

III. Detailed Usage Instructions

1. Setting Aliases and Tags

✅ Server-side API Setup

POST /v4/devices/{registration_id} { "tags": { "add": [ "VIP", "iOS user" ] }, "alias": "user_5678" }
              
              POST /v4/devices/{registration_id}
{
    "tags": {
        "add": [
            "VIP",
            "iOS user"
        ]
    },
    "alias": "user_5678"
}

            
This code block in the floating window

✅ Client-side SDK Setup

2. Initiating Push Notifications

✅ Console Operation

  • Select tag or alias user groups on the push creation page.

✅ API Method

POST v4/push { "from": "push", "to": { "tag": [ "VIP" ], "tag_and": [ "Inactive for 30 days" ] }, "body": { "platform": "all", "notification": { "alert": "Hi, MTPush!", "android": { "alert": "Welcome Back Gift", "title": "Dear VIP user, welcome back! Claim your exclusive offer now." }, "ios": { "alert": { "title": "Welcome Back Gift", "body": "Dear VIP user, welcome back! Claim your exclusive offer now." } } } } }
              
              POST v4/push
{
    "from": "push",
    "to": {
        "tag": [
            "VIP"
        ],
        "tag_and": [
            "Inactive for 30 days"
        ]
    },
    "body": {
        "platform": "all",
        "notification": {
            "alert": "Hi, MTPush!",
            "android": {
                "alert": "Welcome Back Gift",
                "title": "Dear VIP user, welcome back! Claim your exclusive offer now."
            },
            "ios": {
                "alert": {
                    "title": "Welcome Back Gift",
                    "body": "Dear VIP user, welcome back! Claim your exclusive offer now."
                }
            }
        }
    }
}

            
This code block in the floating window

IV. Best Practice Recommendations

✅ Three-tier Tag System Design Suggestions

Level Example Use Case
User Attribute Level Region, province, device system Precision region/platform push
Behavior Level Active users, silent users, unconverted clicks Behavior targeting and churn recall
Business Level Paying users, users with items in cart Personalized conversion strategies

V. FAQs and Notes

Question Answer
Can an alias support multiple registration IDs? One alias corresponds to one registration ID. If a new device sets the same alias, it will overwrite the old binding.
Is there a limit on the number of tags? The total number of tags should be kept within a reasonable range. Consult your customer success manager for best practices.
How to unbind aliases or tags? Use the unbind API or corresponding SDK unbind methods to complete the operation.
How soon does an alias take effect after being set? It takes effect immediately, suitable for binding during login/registration.

VI. Summary

By properly configuring aliases and tags, developers can:

  • 🧠 Reduce development complexity and maintenance costs.
  • 📊 Improve push precision, conversion rates, and ROI.
  • 🔄 Cover the entire user lifecycle from activation to retention.

👉 For more information, please refer to the EngageLab Developer Documentation

icon
Contact Sales