Dynamic Code

Dynamic Code is the language behind Dynamic Content. The code that is added to messages when you add Dynamic Content via the Dynamic Content Wizard is an example of Dynamic Code. You can add Dynamic Code directly to the content of SMS messages and HTML email messages. Dynamic Code allows you to have more control over the behavior of Dynamic Content.

To begin creating Dynamic Code, you must first add {dynamic_code}{/dynamic_code} tags to an HTML/Text email message or SMS message. All Dynamic Code must be contained within the {dynamic_code}{/dynamic_code} tags. You can think of the {dynamic_code}{/dynamic_code} tag as the parent of which all other dynamic code will be a child of (i.e. all of your dynamic code).

Dynamic Code is a scripting language similar to JavaScript. It is an advanced feature that should only be used by people familiar with writing code and coding concepts. Knowledge of Dynamic Code IS NOT required to use Dynamic Content.

Note: Dynamic Code can be used in URLs, however, the URLs (links) will not be tracked. You will not be able to view click level metrics for links containing Dynamic Code.

We do not support adding Dynamic Code to content tags. You can, however add content tags to Dynamic Code. For more information on content tags, see Content Tags.