---
title: Introduction
slug: analytics-developer-docs/introduction
docTags: 
createdAt: 2024-03-13T18:41:25.353Z
---

## Using Chord with a Shopify theme

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](docId\:rinNaZDf89r6M_QK4V21_)), 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](docId\:WcF7IQZjgR3JSnU9IU0pZ).

## Using Chord with a headless Shopify site

For headless sites, Chord recommends using the `@chordcommerce/analytics` package. See [Installing Chord Analytics](docId:1nV6KpJcW0tgvWZw1SoRK) to get started.&#x20;

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](docId\:rinNaZDf89r6M_QK4V21_).

You'll also need to configure your store to send server events. See [Enabling Server Events](docId\:WcF7IQZjgR3JSnU9IU0pZ).

## 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](docId\:WcF7IQZjgR3JSnU9IU0pZ).

