Skip navigation

Objects

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 subscriber within your database.
{{ campaign }}
References the campaign that the current email is a part of.
{{ broadcast }}
References the broadcast that the current email is a part of.
{{ email }}
References the current email.
{{ event }}
References a particular recorded action that your subscriber has taken with Drip or a third-party integration. Note, this object is only available for use in Rules.
{{ 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.)

Subscriber Fields

Use these Liquid shortcodes to insert information about the individual subscriber receiving a particular email.

{{ subscriber.created_at }}
Returns the time at which the subscriber was created in Drip, via signup or import.
{{ subscriber.email }}
Returns the subscriber’s email address.
{{ subscriber.lead_score }}
Returns the subscriber’s lead score, if leadscoring is enabled.
{{ subscriber.friendly_time_zone }}
Returns the subscriber’s time zone: EDT, CDT, etc.

Email Fields

Use these Liquid shortcodes to insert Object metadata related to a particular email.

{{ campaign.name }}
Returns the name of the current email campaign.
{{ campaign.next_email_send_at }}
Returns the timing for the next email to be sent in a 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 subscriber’s current campaign subscriptions.
{{ manage_subscriptions_link }}
Returns the HTML formatted link with the copy “Manage subscriptions” linked to the Drip-generated URL with the subscriber’s current campaign subscription.
Previous: Introduction Next: Attributes