Skip to main content
All CollectionsAdobe Campaign ClassicACC - Triggered Experiments
ACC - Triggered - Real-Time Triggers with Message Center
ACC - Triggered - Real-Time Triggers with Message Center

How to leverage Jacquard triggered message experiments with Adobe Message Center

Updated over a week ago

Before continuing, give Adobe's documentation on Message Center a read. If this doesn't sound like what you're using, you may be looking for our Adobe workflow snippet triggered message experiments integration.

Getting started with triggered message experiments in Adobe Message Center

There's a little housekeeping to take care of if this is your first time using our real-time endpoint in Adobe.

Enable endpoint access

Not unlike what must be done to give our other API endpoints the green light, you'll need to add our https://realtime.phrasee.co URL to your Campaign Control Panel. You can find the panel at https://experience.adobe.com/#/controlpanel.

Follow these directions from Adobe to add https://realtime.phrasee.co to your URL Permissions. Please note, this needs to be done on both your admin and execution instances of Adobe Message Center.

Prepping your email

Follow the steps below to prepare your Message Center delivery for a triggered message experiment.

2. Add the Jacquard variable as your delivery's subject line

Paste the following in the Subject field of your delivery:

<%= language_variant_text %>

3. Add SSJS code to the HTML content of your email

Paste the following SSJS code in the body of the email:

<%
var language_variant_text = "Default line"
var statistics_url = "https://mail-tracking.phrasee.co/live/open?variant_id=000000000000000000000000&campaign_id=<campaignID>";

function looseJsonParse(obj){
return Function('"use strict";return (' + obj + ')')();
}

try {

var phraseeReqCampaign = new HttpClientRequest("https://realtime.phrasee.co/live/single_variant?campaign_id=<campaignID>");

phraseeReqCampaign.header["Authorization"] = "Bearer <token>>"
phraseeReqCampaign.method = "GET";
phraseeReqCampaign.execute();

var phraseeCampaignObj = JSON.parse(phraseeReqCampaign.response.body);
var language_variant_text = phraseeCampaignObj.variant_text;
var statistics_url = phraseeCampaignObj.statistics_url;

}
catch (err) {
var phraseeError = err;
}

for (var step = 0; step < 2; step++) {

var startSLTag = language_variant_text.search("<%=");

if (startSLTag !== -1) {
var endSLTag = language_variant_text.search("%\>");
var tagSLToRep = language_variant_text.substring(startSLTag + 3, endSLTag);
tagSLToRep = tagSLToRep.trim();
language_variant_text = language_variant_text.split("<%= " + tagSLToRep + " %\>").join(looseJsonParse(tagSLToRep));
}

}
%>

We generally recommend pasting it just after the opening <body> tag as seen below.

4. Add the Jacquard tracking pixel to the HTML content of your email

Paste the following tracking pixel just before the closing </body> tag in your HTML:

<IMG src="<%= statistics_url %>" width=1 height=1>

Delivery preparation complete

Your Message Center delivery is all prepped.

Now, it's time to give it a test. If it all works as expected, configure the rest of your Message Center settings as you normally do and push play.

Did this answer your question?