JustUno

Note: Prior to setting up this integration, you will first need to create an "Embeddable Button" type List Building campaign in the Voyage app.

justuno-integration

  1. While in the Promotion Management View, navigate to the promotion you would like to add the Voyage embeddable button code to. Click the paintbrush icon.
  2. Click Layers tab and delete all existing button layer.
  3. Click Add Layers tab and choose SMS Text Message layer
  4. Set SMS Number/shortcode to +71023 or your custom shortcode.
  5. Set your opt-in text in Message Text.

Alternative: Using custom code

See this video to create a JustUno promotion from scratch with Voyage’s embeddable button code.

The opt-in message for that campaign should exactly match the [ENTER CLIENT MESSAGE TEXT HERE] string in the below code.

  1. While in the Promotion Management View, navigate to the promotion you would like to add the Voyage embeddable button code to. Click the paintbrush icon.
  2. Click Custom Code and paste the code below in the Pop Up JS tab.
  3. Turn on Override Default JS.
  4. Save and Publish your campaign.

Note: The code bellow uses the default ‘Form Submit’ button as the embeddable button.

var getClickLink = function () {
var smsText = "[ENTER CLIENT MESSAGE TEXT HERE]";
var phoneNumber = "71023";
var userAgent = navigator.userAgent.toLowerCase();
var smsUrlSeparator = "?";
var phoneSeparator = "//";
if (userAgent.indexOf("iphone") > -1 || userAgent.indexOf("ipad") > -1) {
smsUrlSeparator = "&";
phoneSeparator = "";
}
return "sms:" + phoneSeparator + phoneNumber + smsUrlSeparator + "body=" + smsText;
};
var clickCtaHref = function (event) {
setTimeout(function () {
window.open(getClickLink(), '_parent');
}, 300);
};
document.addEventListener("DOMContentLoaded", function () {
var btn = document.querySelector("[data-name='newsletter_submit']");
btn.addEventListener("click", clickCtaHref);
});