Use implicit variables
The implicit variables enhance the existing fragment functionality to improve efficiency for content reusability and scripting use cases. Fragments can use input variables and create output variables which can be used in campaign and journey content.
This capability can for example be used to initialize tracking parameters of your emails, based on the current campaign or journey, and use these parameters into the personalized links added to the email content.
The following use cases are possible:
-
Use an input variables in a fragment
When a fragment is used in a Campaign/journey action content, it has the ability to leverage variables that were declared outside of the fragment. Below is an example:
We can see above the
utm_content
variable is declared in the campaign content. When the fragment Hero block is used, it will show a link to which theutm_content
parameter value will be appended. The final result is:https://luma.enablementadobe.com?utm_campaign= Product_launch&utm_content= start_shopping
. -
Use an output variables from a fragment
Variables calculated or defined inside a fragment are available for use in your contents. In the following example, a fragment F1 declares a set of variables:
In an email content, we can have the following personalization:
The fragment F1 initializes the following variables:
utm_campaign
andutm_content
. Then the link in the message content will have these parameters appended. The final result is:https://luma.enablementadobe.com?utm_campaign= Product_launch&utm_content= start_shopping
.