Skip to main content
All CollectionsBrazeBraze - Push Experiments
Braze - Dynamic Optimisation - Setting Up a Push Message
Braze - Dynamic Optimisation - Setting Up a Push Message

Learn to prepare a Jacquard push message for deployment

Updated over 4 months ago

At this point, you've set up your reusable Content Blocks (if not, check this out) and activated your Dynamic Optimisation experiment in the Jacquard app for the experiment you are about to send.

Now, we shift to your message setup.

Here, you'll need to paste the following code snippet into the Message field of your Braze push message and replace the PASTE YOUR HUMAN CONTROL HERE text with your human control language variant you entered in Jacquard:

{% assign phraseeExperimentId = '<campaign_id>' %}{{content_blocks.${phraseeContent}}}{% comment %}{% endcomment %}{{variants.variant_text | default: "PASTE YOUR HUMAN CONTROL HERE" }}

You'll need a critical piece of data for this snippets:

  • Jacquard experiment ID - you'll paste this over <campaign_id> in the code snippets

If you're not sure where to find your experiment ID, we've got an article for that, too.

Below is an example of what the code snippet for the Message field might look like with an experiment ID populated:

If you are generating a Title and Message, you will need slightly different code snippets in each section.

For Title:

{% assign phraseeExperimentId = '<campaign_id>' %}{{content_blocks.${phraseeContent}}}{% comment %}{% endcomment %}{{variants.variant_text | default: "PASTE YOUR HUMAN CONTROL HERE" | split: '〽' | first }}

For Message:

{% assign phraseeExperimentId = '<campaign_id>' %}{{content_blocks.${phraseeContent}}}{% comment %}{% endcomment %}{{variants.variant_text | default: "PASTE YOUR HUMAN CONTROL HERE" | split: '〽' | last }}

Personalisation

If your Jacquard language contains personalisation tags, you'll need to add them to your subject line code snippet in between the {% comment %} and {% endcomment %} tag.

If you don't include the personalisation tags within the comment tags, Braze will not process them properly and they will be rendered as literal text within your subject line.

Our example below shows how a code snippet might be configured with Braze's default first name personalisation field:

{% assign phraseeExperimentId = '<campaign_id>' %}{{content_blocks.${phraseeContent}}}{% comment %} {{${first_name}}} {% endcomment %}{{variants.variant_text | default: "PASTE YOUR HUMAN CONTROL HERE"}}

Note the placement of the {{${first_name}}} tag between the comment tags.

If you require multiple personalisation tags, you can simply add them between the {% comment %} and {% endcomment %} tag with a space between them. A bit like this:

{% comment %} {{${first_name}}} {{${last_name}}}{% endcomment %}

Give it a test

Once you've added your code snippets properly to Braze and activated your experiment in Jacquard, you should be able to preview the push and see your message populating dynamically.

After you've set all of this up for the first time, it's a good idea to save your code snippets somewhere safe so you can simply reuse them in the future by swapping out the experiment ID.

Preparing for deployment

Once you've verified your code snippets and personalisation tags are functioning properly, you've completed your minimum push setup. You can now deploy your pushes via your preferred trigger method if you're deploying triggered message experiments.

If you're sending broadcast message experiments, please proceed to the broadcast message experiment rate limiting article to learn about an additional setting you'll need to use.

When deploying to a preconfigured Segment for both triggered and broadcast messages with Dynamic Optimisation, ensure your segment has Analytics Tracking turned ON as in the example below:

Did this answer your question?