How to define variables within Eloqua to store information that can be used in emails?

186 Views Asked by At

New to using Eloqua, and I can see that it doesn't support javascript. I want to store information under variables like this.

<!DOCTYPE html>
<html>
<body>

    <p id="p1"></p>
    <p id="p2"></p>

    <script>
        var Event_Title = 'NA', Speaker = 'XYZ'         
    </script>
</body>
</html>

And use them in the email templates with something like this:

document.getElementById("p1").innerHTML = Event_Title;
document.getElementById("p2").innerHTML = Speaker;

Is there any way this can be done?

1

There are 1 best solutions below

2
On

Email clients (i.e. Outlook) don't support Javascript.

What you need is Dynamic Content to show the content based on a field value. https://docs.oracle.com/en/cloud/saas/marketing/eloqua-user/Help/DynamicContent/DynamicContent.htm

Alternatively, as suggested, a field merge from a CDO would be possible.