--- title: "Email Campaign Setup" slug: "responsys-dynamic-optimisation-email-campaign-setup" updated: 2025-07-17T20:39:08Z published: 2025-07-17T20:39:08Z canonical: "support.jacquard.com/responsys-dynamic-optimisation-email-campaign-setup" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.jacquard.com/llms.txt > Use this file to discover all available pages before exploring further. # Email Campaign Setup Whether you'll be sending a broadcast or triggered campaign with Dynamic Optimisation, there are a few things we'll need to do to get your Responsys campaign ready. Keep in mind, the steps we're going to walk through are the additional settings you'll need to get your Responsys campaign ready to work with a Jacquard experiment. You will still need to take your usual steps in Responsys for prepping your campaign, too. ### 1. Configure a dynamic variable in your email message data source To begin, prepare your email campaign in Responsys as you normally would. Once you've got everything set, navigate to your Email Campaign Designer and click on **Data sources**. It's located in the **Email message** box. [![](https://downloads.intercomcdn.com/i/o/554793522/3fb2467ba865a733a5a3c78d/image.png?expires=1749556800&signature=97465f23df5dc19874448070403a5bec0577f27b29794a204f41cebb93b860b7&req=cSUjEcB9mINdFb4f3HP0gCKBfQ3%2F%2FaFElLNEgfdmmuaPkogJnI1kqxkQb3vH%0AQAgBiM7WCjANj83BLg%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/554793522/3fb2467ba865a733a5a3c78d/image.png?expires=1749556800&signature=97465f23df5dc19874448070403a5bec0577f27b29794a204f41cebb93b860b7&req=cSUjEcB9mINdFb4f3HP0gCKBfQ3%2F%2FaFElLNEgfdmmuaPkogJnI1kqxkQb3vH%0AQAgBiM7WCjANj83BLg%3D%3D%0A) In the data sources pop-up menu, click **OK** under **Dynamic variables** to add a dynamic variable to your data sources. [![](https://downloads.intercomcdn.com/i/o/554797498/2da236e2e5bd7e56aca6e0d9/image.png?expires=1749556800&signature=30dd934f6ed8c9a8f1b608f4e06d8b2d839430cc8df59763c8978c09c9b51fd4&req=cSUjEcB5mYhXFb4f3HP0gHN8llB0m411Sh8LPj1%2BaurU0jtbEJevjMURHKF3%0ACuUpv5tWr9Ruez1SnQ%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/554797498/2da236e2e5bd7e56aca6e0d9/image.png?expires=1749556800&signature=30dd934f6ed8c9a8f1b608f4e06d8b2d839430cc8df59763c8978c09c9b51fd4&req=cSUjEcB5mYhXFb4f3HP0gHN8llB0m411Sh8LPj1%2BaurU0jtbEJevjMURHKF3%0ACuUpv5tWr9Ruez1SnQ%3D%3D%0A) Paste the following into the **Alias** field for the dynamic variable you just added: ```plaintext SUBJECT_LINE ``` Next, click on the **Script** icon. [![](https://downloads.intercomcdn.com/i/o/554799121/097e13a9d155e83dd248615f/image.png?expires=1749556800&signature=71d66a681374660a0d578a8b830b9008495ba988377f5e1b4d8747d617b0324c&req=cSUjEcB3nINeFb4f3HP0gNdaoGRVt8OpJ4ptRZBx%2F370aBVyDJhEELMxvp1x%0Af%2FCFyuvEaztOprTDhw%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/554799121/097e13a9d155e83dd248615f/image.png?expires=1749556800&signature=71d66a681374660a0d578a8b830b9008495ba988377f5e1b4d8747d617b0324c&req=cSUjEcB3nINeFb4f3HP0gNdaoGRVt8OpJ4ptRZBx%2F370aBVyDJhEELMxvp1x%0Af%2FCFyuvEaztOprTDhw%3D%3D%0A) Paste the following into the **Script** editor: ```plaintext <#attempt><#assign variant=parsejson(load("PASTE_JACQUARD_EXPERIMENT_URL_HERE&recipient_id=${CONTACTS_LIST.RIID_?skip}&delivery_id=${.now?string('yyyyMMdd')}"))>${variant['variant_text']?exec}<#recover>Paste your fallback subject line here ``` In your Jacquard experiment's Dynamic Optimisation menu, click on your unique experiment URL to copy it. [![](https://downloads.intercomcdn.com/i/o/554801874/b8bb01c4e034abfd4064d435/image.png?expires=1749556800&signature=ba4b5d7c543221613a6bc2559d9c3138d03113940c22c150d3fc0c0590994579&req=cSUjHsl%2FlYZbFb4f3HP0gO49ng5QQfsq44prycQGvav4O835%2F6%2BTPJt2CaMk%0AobT%2BCfVo2YAtT55HaQ%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/554801874/b8bb01c4e034abfd4064d435/image.png?expires=1749556800&signature=ba4b5d7c543221613a6bc2559d9c3138d03113940c22c150d3fc0c0590994579&req=cSUjHsl%2FlYZbFb4f3HP0gO49ng5QQfsq44prycQGvav4O835%2F6%2BTPJt2CaMk%0AobT%2BCfVo2YAtT55HaQ%3D%3D%0A) Paste the copied URL over the **PASTE_JACQUARD_EXPERIMENT_URL_HERE** placeholder text in the Script editor. Then, paste your human control language over the **Paste your fallback subject line here** placeholder text. Your Script editor should now look similar to the example below. [![](https://downloads.intercomcdn.com/i/o/692782978/34d189831cb2312c5e26a0b2/image.png?expires=1749556800&signature=deac71d6b012c214115da425a96c14baf17b498c6f0078adc5995877a549e01c&req=ciklEcF8lIZXFb4f3HP0gEZs6ieC1RkD9jvhjzJl7hkwy8q2Jvi5cxtIiY6O%0AvsVomN9HvJ%2FjbNRikA%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/692782978/34d189831cb2312c5e26a0b2/image.png?expires=1749556800&signature=deac71d6b012c214115da425a96c14baf17b498c6f0078adc5995877a549e01c&req=ciklEcF8lIZXFb4f3HP0gEZs6ieC1RkD9jvhjzJl7hkwy8q2Jvi5cxtIiY6O%0AvsVomN9HvJ%2FjbNRikA%3D%3D%0A) If you're using your Responsys account-level contacts list as the Profile List for your campaign and your account-level list is named **CONTACTS_LIST**, you can click **Apply** now. If you're using a different list as the Profile List for this campaign or your account-level contacts list is named something different, you will need to replace the **${CONTACTS_LIST.RIID_?skip}** variable in the Script block with the proper RIID field in your Profile List. The variable is highlighted in the example below. [![](https://downloads.intercomcdn.com/i/o/692783769/54105d5fad0082d66c29d5f5/image.png?expires=1749556800&signature=6b9468f10987b4d6b9370e8bc8e2584c645fdec124cc92db94b9d506530c7469&req=ciklEcF9modWFb4f3HP0gNtx3mDIw02YEUmGnkrv6GmytF%2FrUFUdo232DJjs%0ASYGMRxhUFVgNzuJRsQ%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/692783769/54105d5fad0082d66c29d5f5/image.png?expires=1749556800&signature=6b9468f10987b4d6b9370e8bc8e2584c645fdec124cc92db94b9d506530c7469&req=ciklEcF9modWFb4f3HP0gNtx3mDIw02YEUmGnkrv6GmytF%2FrUFUdo232DJjs%0ASYGMRxhUFVgNzuJRsQ%3D%3D%0A) It is essential to include your RIID field accurately to ensure the Dynamic Optimisation works properly. So if you're confused about which field to use here, reach out to your Jacquard Customer Success representative for assistance. Once you're certain your RIID field has been added properly, click **Apply**. Then, click **Save**. [![](https://downloads.intercomcdn.com/i/o/554808518/d05fa4a1bfa24057b8da6357/image.png?expires=1749556800&signature=770f97f329791fb73a4523836242ce8f8f49481e1451a6567fbc863131ebb98e&req=cSUjHsl2mIBXFb4f3HP0gMZ%2B2XIFHUeYW%2B9iLSUhy5yJF6oEO7LkrpL3i250%0A8QdbPeUV1u9QdzySjg%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/554808518/d05fa4a1bfa24057b8da6357/image.png?expires=1749556800&signature=770f97f329791fb73a4523836242ce8f8f49481e1451a6567fbc863131ebb98e&req=cSUjHsl2mIBXFb4f3HP0gMZ%2B2XIFHUeYW%2B9iLSUhy5yJF6oEO7LkrpL3i250%0A8QdbPeUV1u9QdzySjg%3D%3D%0A) ### 2. Add the dynamic variable and tracking pixel to your message Back in the Email Campaign Designer, click **Edit message**. [![](https://downloads.intercomcdn.com/i/o/554809219/6ddef3f656290499948b6f70/image.png?expires=1749556800&signature=ef878ee77318b770929dffa1276a4b8b907a60876e6f8f76df3c74fc8b094b39&req=cSUjHsl3n4BWFb4f3HP0gN7wnRugvXibz7C%2FptwLSx49IDmlO6gg1IczN3Jq%0Az6OwbW9VRkuOjf4fqg%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/554809219/6ddef3f656290499948b6f70/image.png?expires=1749556800&signature=ef878ee77318b770929dffa1276a4b8b907a60876e6f8f76df3c74fc8b094b39&req=cSUjHsl3n4BWFb4f3HP0gN7wnRugvXibz7C%2FptwLSx49IDmlO6gg1IczN3Jq%0Az6OwbW9VRkuOjf4fqg%3D%3D%0A) Paste the following in the Subject field: ```plaintext ${SUBJECT_LINE} ``` Next, paste the following into the HTML body of your email: ```plaintext <#attempt><#assign variant=parsejson(load("PASTE_JACQUARD_EXPERIMENT_URL_HERE&recipient_id=${CONTACTS_LIST.RIID_?skip}&delivery_id=${campaign.id}${.now?string('yyyyMMdd')}"))><#recover> ``` Generally, this should be pasted after the preheader section to ensure your preheader still displays properly in all inboxes. Just like you did earlier for the dynamic variable script, you must again make sure you replace the **PASTE_JACQUARD_EXPERIMENT_URL_HERE** placeholder with the URL from Dynamic Optimisation menu in your Jacquard experiment. You must also check to ensure the **${CONTACTS_LIST.RIID_?skip}** variable is correct for your Profile List. It's vital the RIID variable matches between the dynamic variable script and tracking pixel code. When you're finished, the tracking pixel code should look something like the example below. [![](https://downloads.intercomcdn.com/i/o/692787020/d6c172a8195157f27fddae2a/image.png?expires=1749556800&signature=8c3bc5895151b580092801e279f43eb0bf7e41d668142743953517bb910be64e&req=ciklEcF5nYNfFb4f3HP0gClgziCVbBQeIfFjTA%2FU8Ga8B6kUjJMyFW84kfGq%0AAZ4Gg5OHKXy9HGIBmQ%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/692787020/d6c172a8195157f27fddae2a/image.png?expires=1749556800&signature=8c3bc5895151b580092801e279f43eb0bf7e41d668142743953517bb910be64e&req=ciklEcF5nYNfFb4f3HP0gClgziCVbBQeIfFjTA%2FU8Ga8B6kUjJMyFW84kfGq%0AAZ4Gg5OHKXy9HGIBmQ%3D%3D%0A) When your tracking pixel is all set, click the **Back to Campaign** button to return to the campaign designer dashboard. ### 3. Ensure UTF-8 encoding is enabled Scroll down to the **Additional settings** section and ensure UTF-8 encoding is enabled. If it is enabled, you'll see a **Yes** next to **UTF-8 encoding**. [![](https://downloads.intercomcdn.com/i/o/554829630/a8ef30a5f39997e5f10c7882/image.png?expires=1749556800&signature=41fa28de7861bce439ef04f02d8cb45d70a5d60cd92a30791b6422dbb474eaf8&req=cSUjHst3m4JfFb4f3HP0gB0leXb5JmpMBga8sYXPqh7IRW0ze%2B3kWrwl2sWG%0AQ8j2yBR0whZRE32q7Q%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/554829630/a8ef30a5f39997e5f10c7882/image.png?expires=1749556800&signature=41fa28de7861bce439ef04f02d8cb45d70a5d60cd92a30791b6422dbb474eaf8&req=cSUjHst3m4JfFb4f3HP0gB0leXb5JmpMBga8sYXPqh7IRW0ze%2B3kWrwl2sWG%0AQ8j2yBR0whZRE32q7Q%3D%3D%0A) If it isn't enabled already, open the **Additional settings** section and check the box next to **UTF-8 encoding** and then click **Save**. [![](https://downloads.intercomcdn.com/i/o/554829299/ff382199259a4cdf2ad23faa/image.png?expires=1749556800&signature=a34c1faec1ded720e0702b5a052b5c3629cdf0e3c84a6e7151d83b0128d619dd&req=cSUjHst3n4hWFb4f3HP0gN30I7xq%2BgBu%2B3lQSA%2BYn7PXXvR6fTIWC5%2FJsF3b%0AH2ATvUOrVlKrYlUddg%3D%3D%0A)](https://downloads.intercomcdn.com/i/o/554829299/ff382199259a4cdf2ad23faa/image.png?expires=1749556800&signature=a34c1faec1ded720e0702b5a052b5c3629cdf0e3c84a6e7151d83b0128d619dd&req=cSUjHst3n4hWFb4f3HP0gN30I7xq%2BgBu%2B3lQSA%2BYn7PXXvR6fTIWC5%2FJsF3b%0AH2ATvUOrVlKrYlUddg%3D%3D%0A) ### 4. Configure deployment settings Congrats! That's all of the campaign designer settings required to connect your Responsys campaign and Jacquard experiment. If this is a broadcast experiment, proceed to the [broadcast launch settings](/v1/docs/responsys-broadcast-dynamic-optimisation-launch-settings) article. If this is a triggered experiment, simply deploy the experiment via your normal triggered sending method.