Skip to content

Commit 9518919

Browse files
authored
Merge pull request #5858 from segmentio/Engage-workaround
Add workaround for using liquid statements with images
2 parents 4e04c9e + ce0d716 commit 9518919

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/engage/content/email/template.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,14 @@ You can send test emails before you include a template in marketing campaigns.
4747
- Profiles that you send test messages to must have a userId in Segment.
4848
5. Select **Send test email**.
4949

50+
{% comment %}
5051
> success ""
5152
> When you send a test message, the trait must be valid for the field it's being used in. For example:
5253
> - If you use `profile.traits.first_name` in the **From sender** field, it must be a valid username.
5354
> - If you use `profile.traits.email` in the **Reply to email** field, it must be a valid email address.
5455
56+
{% endcomment %}
57+
5558
> info ""
5659
> You can also test email templates directly from a [Send an Email step](/docs/engage/journeys/build-journey/#send-an-email) in Journeys.
5760
@@ -63,6 +66,15 @@ As you configure the template, click **Merge Tags** and select the profile trait
6366

6467
You can also add merge tags in the heading or body text as you design an email with the [Drag and Drop](/docs/engage/content/email/editor/) or [HTML](/docs/engage/content/email/html-editor/) editors. Engage supports [liquid templating](https://liquidjs.com/tags/if.html){:target="blank"} to create dynamic content in the email design editor.
6568

69+
### Use liquid statements with an image URL
70+
71+
If you're using the [image content module](/docs/engage/content/email/editor/#add-content-modules) in the Drag and Drop Editor, you can't use liquid statements in the **Image URL** field.
72+
{% raw %}
73+
To use liquid statements with an image, Segment recommends using an [**HTML block**](/docs/engage/content/email/editor/#add-content-modules) with the following syntax: <br>
74+
`<img src=“{{profile.traits.imageLink | default: '<insert your default URL here>'}}”`, where `profile.traits.imageLink` is an example profile trait representing personalized image links for each recipient.
75+
76+
{% endraw %}
77+
6678
> info ""
6779
> To learn more about profile traits, visit Segment's [Computed Traits](/docs/engage/audiences/computed-traits) and [SQL Traits](/docs/engage/audiences/sql-traits/) documentation.
6880

0 commit comments

Comments
 (0)