I am trying to add an ad tag to an e-newsletter template but I need to understand the various macros or variables Marketo requires. I have not been able to find this information anywhere. Does anyone have any advice on this?
Solved! Go to Solution.
Hello @JK_BI ,
Could you elaborate a bit more on what you are trying to accomplish?
In a high level to leverage variables in Email templates you have 2 steps.
1) Declare variables, and
2) then you use them.
* Example in the head section you define a variable. Here we define what a variable will be in terms of type, ID, default values, etc. Then later in the email template will will insert the variable and use the ID "textHeader" so matches what we defined previously.
<head>
<meta class=
"mktoString"
id=
"textHeader"
mktoName=
"Text Header"
default
=
"Replace With Header INFO"
>
</head>
[more code - omitted for illustration]
<!-- Header text goes here -->
<div>
<h1> ${textHeader}
</h1>
</div>
https://docs.marketo.com/display/public/DOCS/Email+Template+Syntax#EmailTemplateSyntax-Variables
Hello @JK_BI ,
Could you elaborate a bit more on what you are trying to accomplish?
In a high level to leverage variables in Email templates you have 2 steps.
1) Declare variables, and
2) then you use them.
* Example in the head section you define a variable. Here we define what a variable will be in terms of type, ID, default values, etc. Then later in the email template will will insert the variable and use the ID "textHeader" so matches what we defined previously.
<head>
<meta class=
"mktoString"
id=
"textHeader"
mktoName=
"Text Header"
default
=
"Replace With Header INFO"
>
</head>
[more code - omitted for illustration]
<!-- Header text goes here -->
<div>
<h1> ${textHeader}
</h1>
</div>
https://docs.marketo.com/display/public/DOCS/Email+Template+Syntax#EmailTemplateSyntax-Variables
Thank you for your response! The ad tag that I have is from Passendo, an email ad serving provider. The ad tag contains these two values, "EMAIL" and "SENDOUT_ID" which need to be replaced with the correct Marketo macros or variables. EMAIL is referring to the email of the user, and SENDOUT_ID is the unique id of each sendout - if no unique sendout ID is being used, we can use a timestamp as well, or a combination of macros for 'day', 'month' and 'year'. I am hoping to figure out what Marketo variables I need to include for EMAIL and SENDOUT_ID.
Hello @JK_BI ,
Thanks for clarifying.
It sounds like you could get by with mostly Marketo tokens. You may need velocity scripting if you have a preference for how to display Datetimes.
Email -> {{lead.Email Address}}
https://docs.marketo.com/display/public/DOCS/Tokens+Overview#TokensOverview-PersonTokens
Dates
SENDOUT_ID
Thank you,
oz