Implementing Macros
3min
macros allow you to pass information about the order into key elements of the offer unit to both inform your customer about their completed transaction and optimize the momentscience offer for success momentscience recommends the following macros which can be used during theme customization macro usage {{confirmationref}} used to pass the order/transaction confirmation number into the momentscience offer this is helpful because it informs the user that their transaction was complete and focuses their attention on offers {{firstname}} used to pass the first name of the customer into the momentscience offer this is valuable because it personalizes the momentscience experience and offers deeper encouragement to consider the presented offers {{payload attribute}} any other payload attribute can be used as a macro for personalization for the momentscience unit in order for macros to function, the corresponding parameter must be passed in the payload for example, if you intend to use the {{confirmationref}} macro, you must ensure that a value for confirmationref is passed into the payload examples of macro usage below is an example of macros being used to both personalize the momentscience unit and inform the customer that their purchase was complete paving the way for an optimal experience macros can be used when setting the momentscience unit's header and lead in text when customising your themes the macros {{firstname}} , {{confirmationref}} , and {{amount}} are being used to personalize the message to the user for the given payload as provided in window\ adpxuser window\ adpxuser = { email "demo\@adspost xcom", firstname "mark", lastname "everett", mobile "5551237654", confirmationref "4545 8989 885", amount "$100", currency "usd", paymenttype "credit", zipcode "88904", country "us" }; the macros would result in the following personalized experience 📢 if you're running into any issues while going through the integration process, feel free to contact us at help\@momentscience com