Skip to main content

Custom Events via Shopify Flow

Learn how to send custom events from Shopify Flow to Brevo using Brevo PushOwl's 'Track an Event' action for advanced marketing automations.

Written by Anand
Updated today

Brevo PushOwl integrates with Shopify Flow as a Flow Action, enabling you to send custom events from any Shopify Flow trigger directly to Brevo. This powers advanced marketing automations that go beyond the standard order and customer events that Brevo PushOwl syncs automatically.

If you are already using Shopify Flow with Brevo PushOwl to send push notifications or SMS, see the existing guide: Using Shopify Flow with PushOwl.

How It Works

The Track an Event action connects Shopify Flow to Brevo through Brevo PushOwl:

  1. Shopify Flow detects a trigger: Any event in your store (order placed, customer tagged, product restocked, etc.)

  2. Flow executes the "Track an Event" action: Brevo PushOwl receives the event data with the customer email, event name, and any custom properties

  3. Brevo PushOwl forwards the event to Brevo: The event appears under Brevo → Automations → Logs → Event logs, where you can verify it was received

  4. Brevo Automations trigger: Any Brevo Automation configured to listen for that event name will execute

Prerequisites

Before using the Track an Event action, ensure:

  • Brevo PushOwl is installed on your Shopify store

  • Data sync is complete: Your Brevo sub-account must be set up and connected to Shopify via PushOwl

  • Shopify Flow access: Available on Shopify Basic plan and above

No additional configuration is needed in Brevo PushOwl. The Track an Event action is available automatically once your store is connected.

Creating a Custom Event Flow

This walkthrough shows how to send a custom event to Brevo whenever an order is placed by a high-value customer, in this example, a customer whose lifetime amount spent in your store is greater than 1000.

Step 1: Open Shopify Flow

In your Shopify admin, click on Shopify Flow under Apps to get started.

Step 2: Create a Workflow

Click Create workflow to start a new Flow.

The Shopify Flow dashboard with the Create workflow button to start a new automation.

Step 3: Select a Trigger

Click Select a trigger and choose the event you want to react to. In this example, we use Order created.

The trigger selection step in the new workflow builder.

Step 4: Choose "Order created"

Search for and click Order created in the list of Shopify triggers.

Searching for and selecting the Order created trigger.

Step 5: Add a Condition

Click Add condition and configure a filter on the order. For this example, set customer → amountSpent greater than 1000. This checks the customer's lifetime amount spent in your store, so the event fires only for your high-value customers.

Adding a condition that checks if the customer's lifetime amount spent is greater than 1000.

The condition configuration with customer.amountSpent greater than 1000.

Step 6: Choose the True Branch

Click True. This means the custom event will be sent only when the condition is met, in this case, only for customers whose lifetime amount spent is greater than 1000.

Step 7: Add the Action

Click Action and choose Brevo PushOwl from the list of apps.

Selecting the Brevo PushOwl app in the Shopify Flow action picker.

Step 8: Select "Track an Event"

From the Brevo PushOwl action list, select Track an Event.

The list of Brevo PushOwl actions, with Track an Event highlighted.

Step 9: Fill the Fields

Field

Description

Event Name

Your custom event name (e.g., high_value_order)

Customer Email

Select the Flow template variable for the customer's email (e.g., order.email)

Customer First Name (optional)

Template variable for the customer's first name (e.g., order.customer.firstName)

Customer Last Name (optional)

Template variable for the customer's last name (e.g., order.customer.lastName)

Customer Properties (optional)

Any customer attributes to update on the Brevo contact (JSON format)

Event Properties (optional)

Custom event data you want to pass through with this event (JSON format)

The Track an Event action configuration form with event name, customer fields, and optional JSON properties.

Step 10: Turn On the Workflow

Click Turn on workflow to activate the Flow. As soon as a customer places a qualifying order, this workflow will trigger and the custom event will be sent to Brevo.

Verifying Events in Brevo

To confirm events are arriving in Brevo, go to Brevo → Automations → Logs → Event logs. You will see each tracked event with its name, timestamp, and associated contact email.

The Event logs page in Brevo showing custom events received from Shopify Flow with event name, timestamp, and contact email.

What Happens in Brevo

When a custom event is sent, the following happens in Brevo:

  1. Contact identification: The contact is identified by the customer email you passed in

  2. Contact attributes updated: If Customer First Name, Customer Last Name, or Customer Properties are provided, the contact's attributes are updated

  3. Event logged: The event appears under Automations → Logs → Event logs with any Event Properties data attached

  4. Automations triggered: Any Brevo Automation listening for that event name will execute

Common Use Cases

Loyalty Program Events

Trigger: Customer tag added (e.g., "VIP")

  • Event name: loyalty_tier_upgrade

  • Event properties: tier name, points balance

  • Brevo Automation: Send congratulations email with tier-specific perks

Subscription Renewal

Trigger: Subscription contract renewed

  • Event name: subscription_renewed

  • Event properties: subscription plan, renewal amount

  • Brevo Automation: Send renewal confirmation with next billing date

Back-in-Stock Notification

Trigger: Inventory quantity changed (from 0 to > 0)

  • Event name: product_back_in_stock

  • Event properties: product name, product URL, price

  • Brevo Automation: Notify customers who previously viewed the product

Review Request

Trigger: Order delivered (+ 7-day delay in Flow)

  • Event name: review_request

  • Event properties: order ID, product names

  • Brevo Automation: Send review request email with purchased product details

Customer Win-Back

Trigger: Customer has not ordered in 90 days

  • Event name: customer_at_risk

  • Event properties: last order date, total spend

  • Brevo Automation: Send win-back campaign with personalized discount

Setting Up a Brevo Automation

To act on the custom events in Brevo:

  1. Go to Brevo → Automations → Create a workflow

  2. Choose trigger: "Track Event"

  3. Enter the event name exactly as configured in your Shopify Flow (e.g., "high_value_order")

  4. Add workflow steps (send email, send SMS, update contact, etc.)

  5. Use event_properties for dynamic content personalization in your templates

Troubleshooting

Events not arriving in Brevo?

  • Verify that your Brevo PushOwl data sync is complete and active

  • Check that the customer email exists as a contact in Brevo

  • Check the Shopify Flow run history for any errors

  • Check Brevo → Automations → Logs → Event logs to see if the event was received

Brevo Automation not triggering?

  • Verify the event name in Brevo matches exactly what was sent from Shopify Flow

  • Ensure the Brevo Automation is active (not paused or draft)

  • Check that the contact meets any additional conditions in your Automation workflow

Event properties not showing?

  • Ensure Event Properties is valid JSON format

  • Check that property keys don't contain special characters

  • Properties are available in Brevo's Automation builder under the event's data

Related Articles

Did this answer your question?