4

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

1 Answer 1

7

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

4
  • Thanks for the answer. Unfortunately, that didn't work. I guess there's no way unless we go back to removing spaces from our event names? Commented Sep 19, 2013 at 17:38
  • UPDATE: It worked! I had to remove the space between {{ and the property!!!! THANK YOU Commented Sep 19, 2013 at 17:55
  • Welcome! Glad you made the leap. Commented Sep 19, 2013 at 19:29
  • Thank you, {{ attributes.["My Attribute"] }} worked in the notifications section
    – yuuuu
    Commented Nov 5, 2021 at 17:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.