Customerlabs CDP Documentation

You are here:

Shopflo is a popular one-click checkout platform that helps improve eCommerce conversions, but many users face challenges with event tracking and data accuracy on Meta. Customers 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 Breezeโ€™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:

Before initiating the integration, ensure you have access to coordinate with the Shopflo POC or Support Team to set up the webhook and bring the Shopflo checkout events

Email Template โ€“ Request to Shopflo Team for Webhook Configuration

  • Weโ€™re currently onboarding with CustomerLabs. To enable customer profiling, we require your help in sending the following events(initiate_checkout,addpayment_info, purchase) to CustomerLabs via a webhook and itโ€™s important to include the CustomerLabs user ID with each event for profile unification

Steps to Configure Webhook on CustomerLabs

  • Login to CustomerLabs.
  • Navigate to: Sources โ†’ Connect Source โ†’ Custom Source.
AD 4nXeGpr3GqGgzNC98t91nqx8U3z8ivrdqUsk Q7umc8gS1z807JIpkQooBhowSWLzMCxNV6nARt1YrhqQY JiLkPvUQXUARmqpbDr7Sks1U 3rHn5fWc tdfrA39tqLLENqJZkBBsLA?key=z9fE4jLqXtFTmfX rfXKrQ
  • Name the source as: Shopflo Purchase.
  • A Webhook URL will be generated ans share the Webhook URL along with email
AD 4nXfqrbs25dUBQElqJKW6HuhPuExSmA8 SCh1jzh9QaMcAqodjWHHD 7k7AQCGk87motViicSJ0x dDI8TCPaAG16ZFVKUu8iRMxHvFAiubV8 PiMQ4lz5XBlmU7yBeGnMlN4pCLYJw?key=z9fE4jLqXtFTmfX rfXKrQ

Post-Webhook Setup: Event Configuration in CustomerLabs

  1. Event Configuration- CheckOutMade

To process the data received from the webhook, configure the events in the workflow as follow the steps below

  • CustomerLabs โ†’ Source โ†’ Shopflo Purchase โ†’ Click on โ€œView Workflow Listโ€ at the top, then click โ€œCreate Workflow.โ€
AD 4nXczQAFKlxc 0Xexs55RgC QcUT8qf FDnojm127qVcqSR8tuC1NOOEdEOTK2imElaNUczeqLggc6Ymw1SUFzukKmk01N1VYlshnb5ctrQRL5gsKHxetYvy9mVEDlR6to 1hfqVb?key=z9fE4jLqXtFTmfX rfXKrQ
  • Name the workflow as โ€œShopflo Checkoutโ€ and set the workflow delay to 2 minutes.
  • In the data selection section, click on โ€œFetch New Dataโ€ โ€” youโ€™ll then see the events that have been pushed to the webhook.
image 2
  • To make sure the system only picks up checkout-related actions, add a  filter condition that says event name should include ‘checkout_initiated’ and make sure Customer Labs User Id is included in the payload as given in the screenshot above
AD 4nXdp1FfHol8tapBUBEc9Q570xkB 1xWfNaGcjBAgAe1TGz4KiG4BX6NI1pr2 BVSqtkUhL93cKsNhUR2YiX2tJ3fhMgwKwMgq78 z5hHR3WR2mwCDfBMK04hegnHFH7LAPSl92KoNg?key=z9fE4jLqXtFTmfX rfXKrQ
  • In the event setup, select “Custom Event” and name it “cl_shoplo_checkout_made”.
AD 4nXd13qcHU5nmluXe0PHiQTuRGXIoCqmVqYnAgiMr97o3S6qyFRMN nT1KC3GGIBkpNLNGMmFGA36dNYyIqNtbuv5nxlx6byEtaqVoEDixTkRFTgjFvAvDaMpLZS2vF6gK0EgSo860A?key=z9fE4jLqXtFTmfX rfXKrQ
  • In the User identity mappingYou can choose up to 3 different identifiers, including external IDs, to map user information. These external IDs will be stored by CustomerLabs 1PD Ops to create an enriched user profile.
AD 4nXdMEgIrW2khOjWcgorbJypplgUYy9oTW3eY95SdhQenq5LR5b1J 8CctdgRK3I s0Rt41127A4PKXCUHqM TC3GKYsgxVmatYtjk837GjqUh5NlMBA5d5Uv2FjuS7LGLTRw2MCC?key=z9fE4jLqXtFTmfX rfXKrQ
  •  Map Attributes: Post-user identity mapping, you can map incoming attributes under one major field
  • User traits refer to specific characteristics or attributes associated with an individual user. The user traits include first name, last name, city, state, company, zip code & other similar information that can be added under User traits.  
  • To send usersโ€™ attributes to the ads platforms, you must map them as user traits under event configuration. The more user details you share with platforms like Facebook, the higher the Event Match Quality will be.
AD 4nXc8F0lB5sqOFuxH mZWDki7Dymc92PbZhE0mQc0ZaAR1QPiTkJrYsQVQyGqQfPaLkGph3D02egzCcAIaLlOtw1BqZLk4fhkzdV E8x2aJtj0CcQhoEPdYUMIXsaE 8D0XS77Ib CQ?key=z9fE4jLqXtFTmfX rfXKrQ
  • Product attributes can be added for events related to E-commerce/other business categories, such as Product viewed, Product clicked, Purchases, etc. Details such as product sku, product ID, product variant, and product size can be added under product details and choose line_items from the dropdown.
AD 4nXcqkncG9AvUhlfzqtQcH8Yey5Cdx30y2FOohRccA0haElSL535pHhiK xFyxeroxzycNt VUxQMKK2K7VFIB n1annQ4JVtEnxa46rcl D6KoRTeHAmheRWLwvBYdg8Bg?key=z9fE4jLqXtFTmfX rfXKrQ
  • Additional information pertaining to the event can be added under event properties. The Mandate fields are: value, currency, transaction ID 
AD 4nXfy6v0XWULfGtARaZJILZk MD G 1c9M3G1eq93oox1cph294v36aVl9XI7cwJckQC8uFGz8JFCp9pEQTy6VdIZHKD149pJVCTPqtND6eVgcmNoos e9m9BWvW97xPc33SbhTwqhg?key=z9fE4jLqXtFTmfX rfXKrQ

Similarly, configure workflows for Payment Information and Purchase Events the steps shown below

  1. Event Configuration- AddPaymentInfo
  • Navigate to CustomerLabs โ†’ Source โ†’ Shopify Purchase โ†’ Shopify Checkout
  • Click on the three dots (โ‹ฎ) next to the existing workflow and select “Clone”.
AD 4nXfHzTETQTJUuWn1 rAmXZ4n069HtQwGXExtYX ZRiEF1 k7BBcDU1J9UbO8hwu3c NeVNDFOfaQbk3Fab7aBCrCpMe8UdTc5JOKuBq441XNdP15IT3o7qX8GN Hf3cZeciVAb mcw?key=z9fE4jLqXtFTmfX rfXKrQ
  • Rename the cloned workflow to Shopflo – Payment Info.
  • In the filter section, update the filter condition to event_name contains add_payment.
AD 4nXcawCqhheIhS0fAHu5D9hbzhBQZ3IdDzTs94MH2X8aOI0 q1UZq1mEYFBrtlvN9KKszmvkR8zIzlLiRWheIM2P7M3hF 95GsjoBZGqnwKksg0Td0DywYm GmQPwhT8fHT11cQld?key=z9fE4jLqXtFTmfX rfXKrQ
  • Set the event name in the configuration to โ€œcl_shoplfo_add_payment_infoโ€ and save the workflow.

image 1
  1. Event Configuration- Purchased
  • Navigate to CustomerLabs โ†’ Source โ†’ Shopify Purchase โ†’ Shopify Checkout
  • Click on the three dots (โ‹ฎ) next to the existing workflow and select “Clone”.
AD 4nXfHzTETQTJUuWn1 rAmXZ4n069HtQwGXExtYX ZRiEF1 k7BBcDU1J9UbO8hwu3c NeVNDFOfaQbk3Fab7aBCrCpMe8UdTc5JOKuBq441XNdP15IT3o7qX8GN Hf3cZeciVAb mcw?key=z9fE4jLqXtFTmfX rfXKrQ
  • Rename the cloned workflow to shopflo-purchase
  • In the filter section, update the filter condition to event_name contains order_placed
AD 4nXd31AMdZ3 EdVUQLV7GTAWA7ldKnjJKW6m6HkMKDaH5WR4QOj 1RktU8hQtk6lrzXF3YqUEmZ SS6xVB0h0eCU EF827M tIpy7BFfAjF2aigKthdrjwNaCdg5rzD85V9DcMMqqbw?key=z9fE4jLqXtFTmfX rfXKrQ
  • Set the event name in the configuration to Purchased and save the workflow.
AD 4nXfBz9iQ8surlh0MfQZaRhxLIqVjiFrXeYj7wu szzha5zUuCumjKJpRN49xNaM24TlWP aYhaZks2Bi kE9fuzfYRadM023qE2Lxtu Sq6AHBAMwkUWb37Zch9LqJ4I5opxUo8o?key=z9fE4jLqXtFTmfX rfXKrQ

 Events Audit:

  • Once the event is configured and purchase events begin to come in, youโ€™ll be able to view them in CustomerLabs.
  • To check the events:  Go to CustomerLabs โ†’ Monitoring โ†’ Event Manager
AD 4nXfzwUfev qIFnxpWCCv4v GbllekVsUn6mx7xC38XNfRUkNi 1UFk 1DvzVRDSLZs8uF0nx54aI4m7 uwsn5YfrZz6NnL34FeD4LGKlDRtLzXwsLIiapqLmvwbhKLdo3vKKE3OfJw?key=z9fE4jLqXtFTmfX rfXKrQ

Here, you can verify that the purchase and other configured events are being received successfully.

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?
Need help?
Table of Contents
CustomerLabs gives freedom, flexibility and wings to digital marketers.
Sign Up

Schedule a 1-1 Demo