Alias is a feature that allows you to send personalized and/or triggered push notifications.
With an alias, you can connect a subscriber ID on your website, such as an email address, phone number, and login, with a subscriber’s ID (token) in the Gravitec.net service.
An alias can correspond to many subscriber’s devices, such as a smartphone, laptop, or PC if the subscriber signs in on your website with different devices. In this case, if a push notification is sent to the alias, it will be received by all of the subscriber’s devices.
Requirements for an alias
By using aliases, you can send personal notifications to a single subscriber. For example, you can automatically (with REST API) send a reminder about regular payments, loan debt, and balance replenishment to a subscriber.
Alias assignment is made by adding the JavaScript code to the HTML markup of a page.
 *<**script**> var Gravitec = Gravitec || []; Gravitec.push(["afterSubscription", function (token) {        Gravitec.push(["setAlias", **"e-mail"**]); }]); </**script**>*
Instead of “e-mail” add a variable corresponding to your chosen ID (email address, login, phone number, etc.).
You need to add this script on a page where you can identify a subscriber’s ID, such as a personal account page or login page where a subscriber adds his email address/phone number.
âš Example 1 - For internet provider Assign an alias when a subscriber adds a phone number on a website.
Send a push notification instead of a text message (SMS) with a reminder to make a payment. It will cut your expenses on text messages. Or you can use push notifications as an alternative channel because it is more convenient to read push notifications when you are at your PC than get a text message on your phone when you’re driving a car. If the push notification has not been received, resend the information in SMS.
âš Example 2 - For online store Assign an alias when a subscriber adds the number of his loyalty card.
Send a personal push notification informing him about a new discount for his card or granting a personal discount for his birthday or New Year Eve.
âš Example 3 Assign an alias when a subscriber sings in.
Send him a personalized push notification with a reminder to replenish the balance to avoid stopping the services.
ℹ️ Learn the detailed technical information about tags in tech section - 8.4. 🇬🇧 Website SDK API
Aliases in the dashboard
âš The actual number of subscribers is shown on the Subscribers page in the corresponding section.