When a visitor claims a reward in your popup, Alia saves their discount code on their Postscript subscriber as the aliaoffer property. Add it to your texts as a merge tag, and each subscriber gets the same code they saw in the popup.
Add the code to a text
In Postscript, open the welcome flow and select the text you want to add the code to.
In the message editor, select Merge tags.
Under Subscriber Properties, select
aliaoffer.
When the text sends, Postscript replaces the tag with that subscriber's code.
The property is spelled aliaoffer, with no underscore. Alia also saves aliaoffertext (the reward's title, such as "15% off") and aliaofferexpiration (when the code expires), which you can add the same way.
Make sure the code is there in time
Alia sets aliaoffer when the visitor claims a reward. If your first text goes out before that, the merge tag is empty. To avoid it:
Wait for the reward. On the phone form, turn off Immediately subscribe users to CRMs (under Advanced form settings). Alia then waits until the visitor claims the reward, submits another form, or stops interacting for a few minutes, so the code is on the subscriber before your flow starts.
Set a backup code in Postscript, in case the property is empty.
Popups made with Build a popup also send the code with the signup, as alia_offer, under When form is submitted.
đĄ Note: With Postscript on-site opt-in, you write the first welcome text in Alia, not Postscript. Select the phone step's submit button and edit the Welcome message under Postscript settings. Insert the code with the Reward expression there, since Postscript merge tags don't work in that message. See Using Postscript Onsite Opt-In with Alia.
Frequently asked questions
Why is the code empty in my text?
The text went out before the visitor claimed the reward, or they left before claiming it. Turn off Immediately subscribe users to CRMs on the phone form, and set a backup code in Postscript.
How do I test it?
Test on your live popup. Preview shows a placeholder code instead of creating a real one, so sign up on your store with your own phone number, claim the reward, and check that aliaoffer is on your subscriber in Postscript.
Do email-only signups get the code in Postscript?
No. Postscript only receives visitors who give a phone number.
For everything Alia sends to Postscript, see What Alia sends to Postscript.
Still have questions?
Start a chat from inside the Alia app, or use the chat in our Help Center.
