oracleemailhtml-emaileloqua

can i define global variables for an email in eloqua


I am using eloqua for email marketing and i do not see any way to define global variables in the email. Is there any script that eloqua uses that i can use to define some global variables at the top of the email so i do not have to define values several times in the html?

I am looking to define variables like this:

var mylink = "www.google.com";

<!DOCTYPE html> 
<html>
  <head>  </head>
  <body>
<a href="@mylink">Visit Website</a>
  </body> 
</html>

Solution

  • Eloqua actively blocks java scripting in emails[1].

    What you are attempting is bypassing eloqua built in functions.

    Either utilize the field merge or dynamic content modules to achieve your desired outcome. If you have a range of values, picklists can be very powerful.

    1 https://docs.oracle.com/en/cloud/saas/marketing/eloqua-user/Help/Emails/HTMLemailCodeRequirements.ht