Introduction
Chord offers a Javascript tracking library designed specifically for Shopify themes. Just copy and paste the Chord tracking snippet into your theme (see Installing in a Shopify Theme), and you'll immediately see your storefront send these events to the CDP:
- A page event for every page view
- An identify event for every page view for a logged in user
- The following track events:
- "Cart Viewed"
- "Checkout Started"
- "Email Captured"
- "Order Completed"
- "Product Clicked"
- "Product Viewed"
You can also add more track events from Chord's tracking plan, or any of your own custom events.
You'll also need to configure your store to send server events. See Enabling Server Events.
For headless sites, Chord recommends using the @chordcommerce/analytics package. See Installing Chord Analytics to get started.
If you're using checkout.liquid, you'll need to add Chord's Liquid tracking snippet to track your Shopify Checkout flow. This will provide page events, identify events, and "Order Completed" track events. See Installing in a Shopify Theme.
You'll also need to configure your store to send server events. See Enabling Server Events.
In addition to the front-end tracking events from your theme, Chord also sends server events to the CDP in response to webhook triggers from Shopify. Currently, Chord's server events include identify events and these track events:
- "Checkout Started"
- "Order Completed"
- "Order Refunded"
Server events need to be configured for all Shopify sites. The process is the same for headless sites and sites using Shopify themes. For instructions on configuring, see Enabling Server Events.