Skip to main content
Solved

Data Feed Variables in Subject Line or Preheader

  • October 21, 2021
  • 3 replies
  • 804 views

Forum|alt.badge.img+4

Is it possible to use variables from a data feed in a Campaign subject line or preheader? 

 

We have have a custom web feed from our blog that populates the body of an email template that we use for campaigns, but I haven’t been able to figure out how to insert the blog title into the subject line or preheader.

 

If it helps, here’s what we’re using to populate the email and I’d like to use the item.title in the SL or PH:

<p>{% with feed=feeds.LawnFawnBlog %} </p>

<h2>{% for item in feed.rss.channel.item|slice:"1" %}<span style="font-size:18px;"><a href="{{ item.link }}">{{ item.title }}</a> </span></h2>
<em>By {{ item|lookup:"dc:creator" }} on {{ item.pubDate|cut:":00 +0000" }}</em>

<p>{{ item.description|safe }}</p>

<p>{{ item|lookup:"content:encoded"|safe }} {% endfor %}</p>

<p>{% endwith %}</p>

 

Best answer by David To

Hello @elyssa,

Great question!

Although you can use dynamic variables to personalize a subject line to address your recipients, the subject line does not support variables and syntax from a web feed/data feed associated with the email template. At present the subject line will support dynamical variables to reference profile properties or event data. Because web feeds are activated within the template itself, they would not carry over to the subject line for use. 

You also can find a number of various dynamic variables you can use within your email’s subject line from the How to Format Date Variables in Templates Help Center article. 

I do believe this is a great suggestion and that it would benefit a number of our Community members and clients who want more customization out of our template builder and will be sharing this feedback with our Product Team!

Thanks for being a part of our Klaviyo Community!

David

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

David To
Klaviyo Employee
Forum|alt.badge.img+60
  • Klaviyo Employee
  • 2456 replies
  • Answer
  • October 22, 2021

Hello @elyssa,

Great question!

Although you can use dynamic variables to personalize a subject line to address your recipients, the subject line does not support variables and syntax from a web feed/data feed associated with the email template. At present the subject line will support dynamical variables to reference profile properties or event data. Because web feeds are activated within the template itself, they would not carry over to the subject line for use. 

You also can find a number of various dynamic variables you can use within your email’s subject line from the How to Format Date Variables in Templates Help Center article. 

I do believe this is a great suggestion and that it would benefit a number of our Community members and clients who want more customization out of our template builder and will be sharing this feedback with our Product Team!

Thanks for being a part of our Klaviyo Community!

David


Forum|alt.badge.img+4
  • Author
  • Contributor II
  • 3 replies
  • October 22, 2021

That would be awesome, thanks for your help and passing it along to the product team!


Forum|alt.badge.img
  • Contributor I
  • 1 reply
  • August 2, 2023

Just putting in a +1 request for this feature.