Documentation Center

Using Variables in Notifications (Events)

There are two types of ways you can pass variables into your notifications with Custom Attributes or Event Values.

This document walks you through an example of using event values as variables in your notifications. In particular, this document will use an event label ({event_label}) as a variable but you can also use {event_category}, {event_action} or {event_value}

If you are looking to see how to pass custom attributes into your notifications, please see: Using Variables in Notifications (Attributes)

Example:

In this example we will guide you through adding order information into an event triggered campaign.

You can pass any custom event parameter (ie. "order number" or "tracking number" or "link the customer to their order status/tracking page") into your 'Triggered notification'

Below is an example of an item shipped triggered notification.

Using Variables Content

When looking at the destination URL, it says: {event_label}

Whatever is in the parameter brackets with be replaced with the event label that is attached to that event trigger.

Using Variables Edit

So, in this case you can see that the 'Event Label' for item shipped is the link to a "thank you for your purchase of these items" tracking status page.

As a result, if you put {event_label} in those brackets for the destination URL, {event_label} will be replaced with the Event label attached to that trigger, in this case, a tracking link.

By default we track various events for you automatically that can be leveraged. Here is a link of default tracked events your reference: What are some default events/attributes tracked for Shopify users?