Online Retailers
It's simple to add upsell advertisements to your existing cart checkout flow.
Contact us to get started.
Just include the Agora Upsell logic within your site and make sure it's loaded within the retail checkout context.
<script async src="https://upsell.agoralabs.ai/upsell.js"></script>
After end-user payment, simply invoke the Agora Upsell offer engine to show partner advertisements.
...
// call this after your customer has finished their order and payment
window.addEventListener('load', function () {
// initialize Agora by specifying your own retail domain
upsell.init({ shop: 'mydomain.com' });
// invoke popup and include applicable order number and customer information
upsell.showOffers({ order_info: { id: '[Order ID]' },
customer_info: { first_name: '[First]', last_name: '[Last]', email: '[Email]' } }).then(() =>
{ console.log('ok'); }).catch(e => { console.error('fail', e); }); // use your site's own error handling
});
...
Notes
If you choose not to include customer information such as first name, last name, and email, please pass null for each unspecified field rather than an empty string. This helps our system accurately process the absence of data.
The example above includes basic logging to the console. In a production environment, replace these logs with appropriate error handling tailored to your system's requirements.
During integration and testing, use the keyword test
as an explicit subdomain, eg. "test.mydomain.com",
and first remove the subdomain when deploying to production.
Using Shopify? Contact us to inquire further.
Brand Partners
Easily add your products and services to our advertising platform.
Contact us to get started.
Your landing page and all page navigation up until and including end-user conversion activity must include the following code snippet to function correctly.
<script async src="https://upsell.agoralabs.ai/altag/altag.js"></script>
<script>
window.aldl = window.aldl || [];
function altag() { window.aldl.push(arguments); }
</script>
At the point of end-user conversion, your page must invoke the altag
function.
...
altag('event', 'conversion');
...