WooCommerce supports “webhooks” which is an easy way to establish real-time communication between your shopping cart and LeadsRx. New order information can be automatically sent to LeadsRx and tracked as a “conversion” so that full-funnel attribution can be analyzed.

Below are the basic steps to set up a webhook with WooCommerce. You will need to establish TWO different webhooks, one will be for new orders, and the second will be for orders that are updated. This second hook is important as sometimes orders initially enter the Woo system with a “pending” status until payment has been fully processed, at which time Woo updates the status to “processing”. LeadsRx will only track orders in “processing” status as conversions.

  1. On your WordPress site, go to WooCommerce > Settings in the sidebar. Then select the Advanced tab at the top of the page.
  2. Under the tabs, you will see Page setup | REST API | Webhooks | Legacy API. Select Webhooks.

image2.jpg
     3. Create a New Webhook.

image1.jpg

Fill in the fields with the following:

Name: Send new order data to LeadsRx

Status: Active

Topic: Order Created

Delivery URL: 

https://app.leadsrx.com/woo-track.php?acctTag=XXXX&leadID=XXXX

Secret: leadsrx (all lowercase)

API Version: Leave as V2

Next, we will need to create a 2nd Webhook for Order Updated. This will allow our system to know if the order has been updated. All fields will remain the same except for the following:

  1. Use the name, “Send updated order data to LeadsRx”
  2. Select the Topic, “Order Updated”.

For more about Woocommerce and webhooks, please check out their Help Article