Liquid functions support in destination mappings is now Generally Available.
We’ve introduced liquid functions support in the mappings dropdown, allowing you to apply LiquidJS tags and filters to clean, format, or conditionally transform event data like user properties, timestamps, or metadata. This feature empowers you to tailor data to match the exact requirements of downstream tools with ease!
Key highlights include:
-
Supported liquid tags: Includes
if
,else
,elsif
,unless
,case
,when
,assign
,capture
,increment
,decrement
,echo
,comment
,raw
, andliquid
for conditional logic, variable assignment, and nested code execution -
Supported liquid filters: Over 40 filters like
downcase
,upcase
,strip
,prepend
,append
,replace
,date
,json
,slugify
, andwhere
to manipulate strings, numbers, arrays, and dates
Real-world use cases:
-
Standardize data, e.g., convert emails to lowercase with
{{ event.properties.email | downcase | strip }}
-
Format phone numbers, e.g., using filters like
remove
,prepend
, andstrip
-
Set default values or apply conditional logic with
if
/else
anddefault
For more information, check out our docs.