Case sensitivity and your data
UpdatedWhen you send data to Customer.io, you should format it consistently so it’s easier to reference in liquid to personalize messages and send data to other platforms.
When is data case sensitive?
- AttributeA key-value pair that you associate with a person or an object—like a person’s name, the date they were created in your workspace, or a company’s billing date etc. Use attributes to target people and personalize messages. Attributes are analogous to traits in Data Pipelines. names are always case sensitive.
- You can save both
first_name
andFirst_Name
to a profile; those fields will not merge together. - This is also the case for reserved attributes like
timezone
andunsubscribed
. You must lowercase these attributes to use timezone match or our global subscription functionality.
- You can save both
- Attribute values are case sensitive in liquidA syntax that supports variables, letting you personalize messages for your audience. For example, if you want to reference a person’s first name, you might use the variable
{{customer.first_name}}
. logic. For instance, if a person has afavorite
attribute with the valueSports
, theelse
statment below would render because of the different casing:{% if customer.favorite == "sports" %} Come to the game! {% else %} Try swing dancing! {% endif %}
- Liquid logic - this is true for strings and booleans:
{% if customer.favorite == "sports" %} This renders for people with a value of `sports`. {% else %} This would render for people with any other value, including a different casing of sports. {% endif %}
{% if customer.unsubscribed == true %} This renders for people with a value of `true`. {% else %} This would render for people with any other value, including a different casing of true. {% endif %}
- In-app message page rules
When is data NOT case sensitive?
- AttributeA key-value pair that you associate with a person or an object—like a person’s name, the date they were created in your workspace, or a company’s billing date etc. Use attributes to target people and personalize messages. Attributes are analogous to traits in Data Pipelines. values are case insensitive in UI filters, segment conditions, and workflow logic conditions. For example, people with a
language
attribute value ofFr
orfr
will both receive the email variant forfr
. - EventSomething that a person in your workspace did. Events can trigger campaigns, add people to segments, etc. You can access event properties in liquid with
{{event.<property>}}
names - an eventcourse_signup
sent to your workspace is the same asCourse_signup
. When you’re sending data out of Customer.io, make sure you’re sending the format your destinations would expect. - Trigger names for transactional messages
Copied to clipboard!