Objects are the data that get dynamically inserted into emails or custom fields. They are usually (but not always) accompanied by a property called an “attribute” that defines the specific part of the data (see Attributes) that you want to retrieve for the object.
Objects in Liquid are formatted as follows: {{ object.attribute }}
Drip-specific objects are predefined objects that can be used in your email templates. They are accessible by clicking the “View Shortcode” dropdown in the “HTML” tab of your email editor.
Liquid Objects in Drip
Drip has a handful of predefined objects that hold data related to particular parts of Drip. The particular objects and details are as follows:
{{ snippets }}
A Drip-specific object that references custom user-created content in Drip’s Snippets Builder.
{{ subscriber }}
References an individual person within your database.
{{ broadcast.name }}
References the Single Email Campaign (formerly broadcasts) that the current email is a part of.
Currently, we do not have a way to pull the email series's individual email name
{{ email }}
References the current email and subject line.
example: {"name"=>"Email name", "subject"=>"Subject name"}
{{ event }}
References a particular recorded action that a person has taken with Drip or third-party integration.
{{ event.order }}
References the current order completed on your online store or sent in through the Rest API. Must be referenced after the event object.
{{ now }}
Returns the current time and date in GMT. (This object has no attributes.)
People Profile Fields
Use these Liquid shortcodes to insert information about the individual person receiving a particular email. If a person's profile does not contain values for these fields, the liquid will render as a blank space.
{{ subscriber.first_name }}
Returns the person’s first name.
{{ subscriber.last_name }}
Returns the person’s last name.
{{ subscriber.phone }}
Returns the person’s phone number.
{{ subscriber.address1 }}
Returns the person’s mailing address.
{{ subscriber.address2 }}
Returns an additional field for the subscribers' mailing address.
{{ subscriber.city }}
Returns the city, town, or village in which the person resides.
{{ subscriber.state}}
Returns the region in which the subscriber resides. Typically a province, a state, or a prefecture.
{{ subscriber.zip }}
Returns the postal code in which the person resides, also known as ZIP, postcode, Eircode, etc.
{{ subscriber.country }}
Returns the country in which the person resides.
{{ subscriber.created_at }}
Returns the time at which the person was created in Drip, via signup or import.
{{ subscriber.email }}
Returns the person's email address.
{{ subscriber.lead_score }}
Returns the person's lead score, if lead scoring (legacy feature) is enabled.
{{ subscriber.friendly_time_zone }}
Returns the person's time zone: EDT, CDT, etc.
{{ subscriber.tags }}
Returns all the tags associated with the profile.
Best used for conditional statements as shown here.
Email Fields
Use these Liquid shortcodes to insert Object metadata related to a particular email.
{{ campaign.name }}
Returns the name of the current Email Series Campaign.
{{ campaign.next_email_send_at }}
Returns the timing for the next email to be sent in an Email Series Campaign.
{{ from_name }}
Returns the sender name associated with the email.
{{ from_email }}
Returns the email address associated with the email.
{{ postal_address }}
Returns the postal address associated with the email.
{{ inline_postal_address }}
Returns the unformatted postal address associated with the email.
{{ html_postal_address }}
Returns the HTML formatted postal address associated with the email.
{{ view_in_browser_url }}
Returns the raw Drip-generated URL to view the email online.
{{ view_in_browser_link }}
Returns the HTML formatted link with the copy “View in browser” linked to the Drip-generated URL.
{{ confirmation_url }}
Returns the raw Drip-generated URL to confirm opt-ins.
{{ confirmation_link }}
Returns the HTML formatted link with the copy “Confirm subscription” linked to the Drip-generated confirmation URL.
{{ unsubscribe_url }}
Returns the raw Drip-generated URL to unsubscribe a contact.
{{ unsubscribe_link }}
Returns the HTML formatted link with the copy “Unsubscribe” linked to the Drip-generated unsubscribe URL.
{{ manage_subscriptions_url }}
Returns the raw Drip-generated URL with the person's current Email Series Campaign subscriptions.
{{ manage_subscriptions_link }}
Returns the HTML formatted link with the copy “Manage subscriptions” linked to the Drip-generated URL with the person's current Email Series Campaign subscription.