Personalization field in script
Hi,
I have a script in an email template which I want to populate with the name and email of the recipient. How may I do that? See the script below where I have tried to add the personalization field but I am not sure of the format. Now it will just be formatted as text.
<script type="application/json+trustpilot">
{
"recipientName": "<span class="acr-field nl-dce-field" data-nl-expr="/context/targetData/name" data-nl-type="string" contenteditable="false">Name (name)</span>",
"recipientEmail": "<span class="acr-field nl-dce-field" data-nl-expr="/context/targetData/email" data-nl-type="string" contenteditable="false">Email (email)</span>"
}
</script>
Br
Filip