Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What if my attribute name in Shopify liquid has a space? (Customer.io email system)

I'm attempting to add some logic in Customer.io, which uses Shopify's Liquid markup language:

{% if customer.Campaigns Participated > 0 %} I also saw that you participated in a campaign, which is awesome!

If you have a second, I'd love it if you could tell me what it was that made you sign up?

{% else %}

I see you haven't had a chance to participate in your first campaign - can I ask what happened?

{% endif %}

The problem is that it doesn't recognize the "Campaigns Participated" property due to the space...

Is there any way I can escape this space or something?

Thank you

like image 707
Jonathan A. Levi Avatar asked Sep 06 '25 03:09

Jonathan A. Levi


1 Answers

customer.['Campaigns Participated'] is your only hope.

like image 52
David Lazar Avatar answered Sep 07 '25 23:09

David Lazar