Drip Abandoned Cart Tracking

#Overview

Using WP Fusion’s Abandoned Cart addon (available to Plus and Professional license holders), you can track and follow up on abandoned carts from popular WordPress plugins in Drip.

WP Fusion’s Abandoned Cart addon works with the following plugins:

After the customer’s name and email have been entered on the checkout form, the customer is added as a contact to Drip (even if they don’t complete the checkout).

You can then use workflows in Drip to follow up with customers who don’t complete checkout within a specified period of time, including sending a cart recovery URL, and issuing automatic discounts based on tags.

#Setup in WordPress

Download the WP Fusion – Abandoned Cart Addon plugin file from your account and install it on your WordPress site.

The Abandoned Cart settings are found at Settings » WP Fusion » Addons.

screenshot

There are two important settings:

  1. In the Apply Tags setting, select a tag to use for tracking abandoned carts. This tag will be applied when a cart is abandoned, and automatically removed once a customer completes checkout.
  2. In the Abandoned Cart Delay setting, select how long (in minutes) WP Fusion should wait after the customer begins to checks out before applying the abandoned cart tags.

Other settings may be shown based on your installed plugins. For more information, see the tooltips or visit the Abandoned Cart Tracking Overview documentation.

#Syncing cart fields

WP Fusion has the ability to sync details about the abandoned cart to custom fields on contact records in Drip. These fields can then be added to cart recovery emails using merge tags.

To enable these fields, head to Settings » WP Fusion » Contact Fields » WP Fusion Abandoned Cart.

#Recovery URLs

With WooCommerce and Easy Digital Downloads, WP Fusion has the ability to generate a cart recovery URL and sync it to a custom field in Drip.

This can be enabled by enabling the Recovery URL field for sync from the Contact Fields list (see above).

When a customer begins to check out (or their cart contents are updated), the cart contents will be saved into a cache in your database, and the recovery URL will be synced to the selected custom field in Drip.

The WP Fusion activity logs show the cart data being synced to the CRM once a customer has entered their email address on the checkout page.

You can then use a merge field in the email editor in Drip to include the unique recovery URL.

When the recovery URL is visited the customer’s cart contents will be restored, and the checkout fields will be pre-filled using the information that was entered in the initial abandoned checkout session.

#Setup in Drip

In Drip, create a workflow that is triggered when the Abandoned Cart tag is applied, and connect it to one or more cart recovery emails.

drip abandoned cart workflow01

In your email, you can dynamically include the cart recovery URL by inserting the merge tag using the merge tag editor.

drip abandoned cart workflow email

Publish the workflow to make it live.

Shopper Activity API #New

The Shopper Activity API supports syncing the full cart contents to Drip when a customer updates their cart in WooCommerce.

To enable this feature check the box for Sync Carts from the Addons tab in the WP Fusion settings.

You can also specify the page the customer should be taken to when they click on the cart recovery link. The Current Page option can be used if you have multiple checkout pages (for example with CartFlows).

Note: With this method enabled it’s not necessary to use tags for tracking cart abandonment, and it’s not necessary to use a custom field for the recovery URL.

#Setup in Drip

When a customer begins checking out a new cart will be created in Drip, which will trigger the “Created a cart” action. When a customer adds something new to their cart it will trigger the “Updated a cart” action. You can use these actions as an entry point for your workflows.

drip abandoned cart workflow2

Update: You can use the “Cart Abandonment” Block to merge the abandoned cart contents into your email.

Alternatively, for additional control over the layout, consider using Liquid code. Below is an example Liquid template:

{% for item in event.items %}

<table style="width: 100%;">

<tbody>

<tr>

<td width="50%"><img src="{{ item.image_url }}" style="width:100%;display:inline-block;" /></td>

<td style="padding-left:24px; vertical-align: top;" width="50%">

<h2 style="margin-top:0;margin-bottom:12px;"><span style="font-size:28px">{{ item.name }}</span></h2>

<span style="font-size:16px">Price: ${{ item.price }}</span><br />

<span style="font-size:16px">Quantity: {{ item.quantity }}</span><br />

<a href="{{ item.product_url }}" style="background:#000000; padding:6px 12px; margin-top:12px;color:#fff;border-radius:6px;display:inline-block;">View Product</a></td>

</tr>

</tbody>
</table>
{% endfor %}

To edit the Liquid code in your Drip emails, click on any text area and switch over into Source mode by clicking the <> icon, then paste in the code above.

Your email should then look something like this:

See the Drip documentation for more info on the syntax for Liquid tags.

The cart recovery link can be added by creating a button with the URL {{ event.cart_url }}.

#How it looks

Your customer’s cart contents will be merged into the email, including product names, prices, and images.

#Testing

To test your abandoned cart workflow, set the Abandoned Cart Delay setting to 0 to disable the delay. Open a new private browser window and add a product to your cart.

On the checkout screen, enter at least your name and email address. Once your focus leaves the email address field (either by clicking out of the field, or entering text into the next field), a contact will be created in Drip, the tag will be applied, and the email will be sent.

The WP Fusion activity logs show any data being sent to Drip.

You can click the cart recovery link in the email to confirm the customer details and cart contents are successfully restored.

#Troubleshooting

When a customer begins to check out you should see an entry appear (within a couple of minutes) on their activity stream in Drip with the cart contents.

If this entry doesn’t appear or you experience other unexpected behavior with abandoned cart tracking, please first turn on WP Fusion’s activity logs and begin a test checkout to trigger the abandoned cart actions.

The Abandoned Cart Addon will write detailed information to the logs, which you can include in your support ticket.

#Further reading

For more information on abandoned cart tracking with WP Fusion, see the Abandoned Cart Tracking overview.

To automatically apply discounts in WooCommerce based on a contact’s tags in Drip, see the Automatic Discounts documentation.

Was this helpful?