Get Started with a Free Account
Sign up in 30 seconds. No credit card required. Receive 30 incentives every month with limited features, upgrade anytime.
So you are a coder
Our API supports several types of configuration and customization. Below are some examples to get you started.
Table of Contents
Hiding promo Button & Opening it with JS
To hide the small promo button that activates the opening of the promo box you simply need to add this variable within the script tag portion:
var ju_hidebutton = true;
If you'd like to open a specific coupon offer you can do so by setting the promotion ID (found on the manage promtions page) before you call the ju_loadiframe() function per the example below:
ju_show_coupon_id = 2342; // replace this number with your promotion ID ju_loadiframe();
Example of text link..... Click for 15% off
To auto open it on page load, just change your body tag to include the onload...
Note, you only want to add this to your homepage embed code or pages you would like to have the box automatically open.
This will display the promotional offer inline somewhere on your page vs the default hovered popup. This script will load an iframe into the element on your page you have designated at page load. Make sure to replace the #elementid portion in this sample code with your html element you would like to load it in. For example, if you have <div id="mycontainer"></div> then you would use var ju_loadwindow = '#mycontainer'; any jquery selector will work here.
How to provide custom values for use with targeting rules
var ju_custom1 = 99.99 // this could be the current shopping cart total for the customer var ju_custom2 = "logged in" // this say whether the user is logged in or not var ju_custom3 = "true" // this could be true or false if the user is a repeat buyer
UI Configuration Options
|Name||Description||Type||Default value||Option Values|
|ju_hidebutton||When specified as true the promo button will not be rendered requiring you to use the JU_openpromobox() function to expand the promo box.||boolean||false|
|ju_custom1||Any custom value you want to assign for use with targeting rules||string or number||empty|
|ju_custom2||Any custom value you want to assign for use with targeting rules||string or number||empty|
|ju_custom3||Any custom value you want to assign for use with targeting rules||string or number||empty|
Popular Shopping Cart Integration Steps
Click Here for platform integration steps