Brevo Enhanced Ecommerce

#Overview

WP Fusion’s Enhanced Ecommerce Addon (available for Plus and Professional license holders) supports sending ecommerce transaction data as Deals to your Brevo account for sales made in:

#Getting started

As of the v1.26.0 Enhanced Ecommerce update, WP Fusion supports both Orders and Deals with Brevo.

screenshot of the wp fusion settings interface focused on the enhanced ecommerce tab. options to select transaction type as orders, deals, or both, with a dropdown for deal stage and a checkbox for syncing attributes and meta data as line items are visible. integration with brevo is also highlighted.

The default for new sites is Orders, sites with existing pipelines and stages will default to Deals.

#Orders

Orders are a new feature in Brevo that are part of the new E-commerce portal.

The E-commerce dashboard provides a more detailed insight into your store’s performance than was previously possible with Deals.

the enhanced e commerce dashboard showcases analytics: revenue at 122.00, orders at 4, new customers at 4. brevos popular product impulse duffle generated revenue of 74.00. live feed shows no events identified in the past 24 hours, with a time comparison from feb 8 mar 9 and jan 8 feb 6.
Brevo’s new Ecommerce features provide enhanced reporting and product management features compared to Deals.
the product performance dashboard offers an enhanced ecommerce view of four products: impulse duffle, hat, shirt green, and shirt. each item is detailed with metrics on orders, quantity, revenue, and retention percentages to empower data driven decision making.
The Brevo E-commerce portal includes detailed reports on product performance.
screenshot of a contact profile in brevo. the main section provides enhanced ecommerce insights, featuring statistics and recent history with orders for green shirt and interactions from february 2023. the user friendly interface includes navigation menus on the left.
Order details and ecommerce data are shown in detail on the subscriber record when using the new E-commerce Orders integration.

In most cases, we recommend configuring WP Fusion to create Orders in Brevo, since these more accurately reflect the order experience in WordPress, and have more powerful reporting and filtering features in Brevo.

#Deals

As an alternative to (or in addition to) Orders, WP Fusion can also create “Deals” inside of sales pipelines in Brevo.

Once you install the Enhanced Ecommerce addon, WP Fusion will load your available deal stages from Brevo. You can also refresh the available stages at any time by clicking the Refresh Available Lists & Fields button in the WP Fusion settings.

To begin syncing deals with Brevo you must first select a Deal Stage for new deals from the Enhanced Ecommerce tab in the WP Fusion settings.

WooCommerce orders appear as Deals in Brevo sales pipelines

The deal title will be name of the order in WooCommerce (or other supported ecommerce plugin), and the deal value will be set to the total amount of the sale.

The single deal view shows the title and value, and the deal description contains a list of purchased products and their prices.

#How it works

When a customer checks out on your site, WP Fusion will create a new order and/or deal in Brevo with the order label, date, and invoice total.

This sale data will be associated with the subscriber record who made the purchase.

#WooCommerce order statuses

If you’re using WooCommerce you can also associate WooCommerce order statuses with deal stages in Brevo.

This setting appears under the Enhanced Ecommerce tab in the WP Fusion settings.

When the order status is updated in WooCommerce, the deal stage will be updated in Brevo.

Warning: It is recommended not to sync Pending payment orders with Brevo. When this is enabled, WP Fusion needs to create a contact record and a deal in Brevo as soon as the pending order is created in WooCommerce, and then update it less than a second later when the payment is processed.

This slows down your checkout with many duplicate API calls and in most cases isn’t necessary. A more performant method of tracking incomplete payments is to use Abandoned Cart Tracking.

Note: By default, running a WooCommerce Orders (Ecommerce addon) export operation from the Advanced settings tab will only export “paid” orders (Processing or Completed). However, if you have enabled additional order statuses for sync to a Brevo stage, then running the export will process those additional statuses as well.

This can be used to export refunded or cancelled orders to Brevo in addition to the paid orders.

#Modifying the API data

WP Fusion supports using filters to modify the data sent to Brevo with an ecommerce order.

#Custom deal fields

At the moment WP Fusion doesn’t have a visual interface for associating WordPress data with custom deal attributes in Brevo.

However you can still make this work using the wpf_ecommerce_sendinblue_add_deal filter.

In this case we’re going to update the Order URL field, which has an internal name of order_url, and update it with the edit link to a WooCommerce order.

function my_custom_deal_properties( $deal, $order_id ) {

	/* $deal is structured like:

	 $deal = array(
	 	 'name'              => 'WooCommerce Order #123',
	 	 'linkedContactsIds' => array( 123 ), // the contact ID of the customer.
	 	 'attributes' => array(
	 	 	 'deal_description' => 'Cool Product - $100', // the products purchased and prices.
	 	 	 'amount'           => 100, // the total amount.
	 	 	 'deal_stage'       => 'Completed', // the deal stage.
	 	 	 'close_date'       => '2023-05-16', // the order date.
	 	 ),
	 ); */

	$deal['attributes']['order_url'] = admin_url( 'post.php?post=' . $order_id . '&action=edit' ); // adds a custom attribute.

	return $deal;

}

add_filter( 'wpf_ecommerce_sendinblue_add_deal', 'my_custom_deal_properties', 10, 2 );

And here in Brevo you can see that when WP Fusion creates the deal, the custom properties are automatically populated:

Was this helpful?