Connect a Shopify store to track shopper events with the TrustData pixel and to receive order events from Shopify. TrustData matches each order to the visit that led to it, and syncs store data on a schedule.
One connection does three things:
The pixel and the order events share a checkout token. TrustData uses it to match an order to the visit that placed it.
You need:
mystore or mystore.myshopify.comTrustData then creates the pixel in your store, or updates it if one already exists. It registers the webhooks when you install the app. If the pixel setup fails, TrustData still connects the store and shows a warning that the pixel needs manual setup in your Shopify admin.
TrustData requests these Shopify permissions:
| Permission | Used for |
|---|---|
read_orders | Reading orders |
read_customers | Reading customers |
read_products | Reading products |
write_pixels | Creating the TrustData pixel in your store |
read_customer_events | Letting the pixel read shopper events |
The pixel runs in Shopify's customer events sandbox. TrustData sets three options when it creates the pixel:
| Option | Value |
|---|---|
| Server URL | https://t.trustdata.tech |
| Attribution ID | The Attribution ID you selected |
| Debug Mode | true if you turned on Debug Mode, otherwise false |
The pixel sends these Shopify events to TrustData:
| Shopify event | TrustData event |
|---|---|
page_viewed | page_view |
product_viewed | view_item |
collection_viewed | view_item_list |
search_submitted | search |
product_added_to_cart | add_to_cart |
product_removed_from_cart | remove_from_cart |
cart_viewed | view_cart |
checkout_started | begin_checkout |
checkout_contact_info_submitted | add_contact_info |
checkout_address_info_submitted and checkout_shipping_info_submitted | add_shipping_info |
payment_info_submitted | add_payment_info |
checkout_completed | purchase |
The purchase event carries the transaction ID, tax, shipping, the checkout token and whether it is the customer's first order.
The pixel reads each visitor's Shopify consent choices for analytics, marketing, preferences and sale of data. It sends them with every event. Without analytics consent, the pixel does not send a visitor ID.
Debug Mode writes pixel messages that start with [TrustData] to the browser console. Turn it on while you test, then turn it off.
Shopify sends these webhooks to TrustData:
| Shopify topic | What TrustData records |
|---|---|
orders/paid | A purchase. If the order already has refunds, a refund |
orders/updated | An order update, a refund if the order has refunds or its status is refunded or partially_refunded, or a cancellation if the order has a cancellation time |
orders/cancelled | A cancellation, with a negative value |
customers/create | A new customer |
TrustData ignores an orders/updated or orders/cancelled event for an order whose payment status is pending, because that order is not a sale yet. Cash on delivery orders count when Shopify sends orders/paid.
TrustData also receives app/uninstalled and Shopify's data privacy requests (customers/data_request, customers/redact and shop/redact).
TrustData syncs these Shopify data sets every 3 hours:
| Data set | Description |
|---|---|
| Orders | Orders with line items |
| Customers | Customer details used to identify returning shoppers |
| Transactions | Payment transactions |
| Products | Catalog with variant prices and availability |
| Inventory levels | Stock per location |
| Price rules | Promotion setup |
| Discount codes | Promotion codes |
The first sync reads the last 90 days. Later syncs re-read the last 30 days, so late updates reach TrustData.
When you uninstall the TrustData app from Shopify, Shopify notifies TrustData. TrustData turns off the Shopify data source and adds an entry to your change history, titled "TrustData app uninstalled from Shopify". Attribution analysis excludes the surrounding period.
[TrustData] messages in the browser console