Using macros
Macros allow you to pass information about the order into key elements of the ad unit to both inform your customer about their completed transaction and optimize the AdsPostX unit for success.
AdsPostX offers the following macros which can be used during snippet customization:
Macro | Usage |
{{confirmationref}} | Used to pass the order/transaction confirmation number into the AdsPostX unit. 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 AdsPostX unit. This is valuable because it personalizes the AdsPostX experience and offers deeper encouragement to consider presented offers. |
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.
Below is an example of macros being used to both personalize the AdsPostX unit and inform the customer that their purchase was complete paving the way for an optimal experience.
