Skip navigation
User Manual
Overview

Call Event Properties with Liquid

Event properties can be called in a Workflow or Rule with Liquid code. This allows you to pull specific properties from an event and use that information to set a Custom Field, apply a Tag, or personalize an email. 

The following Liquid code template is how event properties are called:

{{ event.the_property_name }}

In the Liquid code example above, the event keyword is a universal identifier in Drip for any event that is recorded in your account. Followed by the event keyword, is the property_name or the specific event property that is called from the event. Replace the property_name with the name of the event property to call. Using this code, the value of that property is exposed. 

Example event

To call the event property of this Made a purchase event, use the following liquid code:

{{ event.product_name }}

The event property: product_name holds a value of Tote Bag

Call Event Properties in Automation

When event properties are called in a Workflow or Rule, the following actions are able to set a value based on the property that is being called:

  • Apply a tag

  • Set a custom field

  • Send a one-off email

  • Send a notification email

Event properties can be called only after a trigger event has fired. Once a trigger fires, the values for the above actions can be set. 

Apply a Tag

Use a rule to apply a tag based off of an event property

This Rule uses the Made a purchase event as its trigger and shows how to apply a Tag by calling an event property with the following Liquid code: 

{{ event.product_name }}

The result applies the tag Tote Bag to the person that triggered the event. 

Set a Custom Field Value

Set a custom field value based on an event property

This Rule uses the Made a purchase event as its trigger and shows how to set a custom field value by calling an event property with the following Liquid code: 

{{ event.product_name }}

The result sets a Product custom field with a value of Tote bag. 

x A browser window showing the Drip Swag Shop

Wanna see Drip from a fresh angle?

Craving a more hands-on experience? Take 2 minutes and see what your shoppers see when you use Drip with this interactive experience.

Start my experience