Search code examples
shopifyliquidliquid-layout

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


Solution

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