Tracking Shopflo Checkout Events in CustomerLabs
Shopflo is a popular one-click checkout platform that helps improve e-commerce conversions. However, users often experience duplicated purchase counts and discrepancies in Meta Ads reporting due to duplicated pixel firing and browser limitations affecting client-side tracking.
By leveraging CustomerLabs’ first-party data (1PD) platform, businesses can implement server-side tracking via Meta’s Conversions API, overcoming Shopflo’s native tracking restrictions. This ensures more accurate event data, reduces data loss, and improves ad attribution and campaign optimization on Meta and Google Ads.
Prerequisites
Section titled “Prerequisites”- Active CustomerLabs Account
- Active Shopflo Account with checkout access
- Access to coordinate with your Shopflo Point of Contact (POC) or Shopflo Support Team to configure webhook delivery
Step 1: Create a Custom Source in CustomerLabs
Section titled “Step 1: Create a Custom Source in CustomerLabs”Once you have informed the Shopflo team, set up the Custom Source in CustomerLabs to generate the Webhook URL.
- Log in to your CustomerLabs account.
- Navigate to Sources → Connect Source → Custom Source.
- Name the source
Shopflo Purchase. - A Webhook URL will be automatically generated. Copy this URL and share it with the Shopflo team (Next Step) so they can begin sending event data to CustomerLabs.
Step 2: Request Shopflo Team to Configure the Webhook
Section titled “Step 2: Request Shopflo Team to Configure the Webhook”Before configuring anything on the CustomerLabs side, reach out to your Shopflo Account Manager or support team with the request to share the checkout_initiated, add_payment_info, order_placed events to the webhook URL generated in the previous step.
Step 3: Verification of events received in the Webhook
Section titled “Step 3: Verification of events received in the Webhook”Once Shopflo begins sending events to the webhook, verify that the events are received in the webhook.
- Login to Customerlabs account.
- Go to Monitoring → Logs. Click on Sources tab.
- Choose “Shopflo Purchase” from Sources dropdown.
- Choose the Time Range to “Last 1 day” and Click “Apply”.
- Verify the events received in the webhook.
- Ensure the
customerlabs_user_idis present sent as a parameter in the payload. It is usually sent ascluid,user_idand starts withcl.
Step 4: Configure Workflows in CustomerLabs
Section titled “Step 4: Configure Workflows in CustomerLabs”Once Shopflo begins sending events to the webhook, configure a separate workflow in CustomerLabs for each event. Each workflow processes the raw webhook data and maps it to a CustomerLabs event.
Workflow 1: Checkout Made
Section titled “Workflow 1: Checkout Made”-
Navigate to CustomerLabs → Sources → Shopflo Purchase.
-
Click “View Workflow List” at the top, then click “Create Workflow”.
-
Name the workflow
Shopflo Checkoutand set the workflow delay to 2 minutes. -
In the Data Selection section, click “Fetch New Data” to load events that have been pushed to the webhook.
-
In the Filter section, add a condition:
- Field:
event_name - Condition: contains
- Value:
checkout_initiated
- Field:
-
In the Event Configuration section, select “Custom Event” and name it
cl_shopflo_checkout_made. -
In the User Identity Mapping section, map up to 3 user identifiers (e.g.,
identify_by_email,identify_by_phone). CustomerLabs will use these to build and unify the user’s 360° profile. -
Under User Traits, map incoming attributes (e.g.,
first_name,last_name,city,state,zip_code). The more user details mapped, the higher the Event Match Quality (EMQ) on ad platforms like Meta. -
Under Product Details, map e-commerce product attributes such as
product_id,product_sku,product_variant, andproduct_quantity. Selectline_itemsfrom the dropdown to map product arrays. -
Under Event Properties, map the mandatory fields:
value,currency, andtransaction_id. -
Click Save Workflow.
Workflow 2: Add Payment Info
Section titled “Workflow 2: Add Payment Info”Rather than creating a new workflow from scratch, clone the Checkout Made workflow and update only the filter and event name.
- Navigate to CustomerLabs → Sources → Shopflo Purchase → Shopflo Checkout.
- Click the three-dot menu (⋮) next to the
Shopflo Checkoutworkflow and select “Clone”. - Rename the cloned workflow to
Shopflo - Payment Info. - In the Filter section, update the condition to:
- Field:
event_name - Condition: contains
- Value:
add_payment
- Field:
- In the Event Configuration section, update the event name to
cl_shopflo_add_payment_info. - Click Save Workflow.
Workflow 3: Purchased
Section titled “Workflow 3: Purchased”- Navigate to CustomerLabs → Sources → Shopflo Purchase → Shopflo Checkout.
- Click the three-dot menu (⋮) next to the
Shopflo Checkoutworkflow and select “Clone”. - Rename the cloned workflow to
Shopflo - Purchase. - In the Filter section, update the condition to:
- Field:
event_name - Condition: contains
- Value:
order_placed
- Field:
- In the Event Configuration section, update the event name to
Purchased. - Click Save Workflow.
Step 4: Verify Events in CustomerLabs
Section titled “Step 4: Verify Events in CustomerLabs”Once all three workflows are configured and Shopflo begins sending events, you can monitor them in the CustomerLabs Events Manager.
- Navigate to CustomerLabs → Monitoring → Events Manager.
- Select the relevant date range and click Apply.
- Verify that the following events are being received successfully:
cl_shopflo_checkout_madecl_shopflo_add_payment_infoPurchased