website logo
Navigate through spaces
⌘K
OVERVIEW
ORDER MANAGEMENT (OMS)
CONTENT MANAGEMENT (CMS)
DATA
CUSTOMER LIFETIME REVENUE
Customer Lifetime Revenue Explanation
Customer Lifetime Revenue and Purchase Likelihood
Recency Frequency and Monetary
CLR and RFM Data Table Glossary
RFM and CLR in the Hub
LOOKER
Modifying a Dashboard
Timestamp differences between Looker, OMS and Shopify
How to create custom calculations in Looker
Looker and Shopify data models
Custom fields
How to 'Save and Schedule' reports
Creating Custom Reports or Look
Looks vs Dashboards
Login Looker FAQ
Looker Glossary
SEGMENT EVENT TRACKING
What are event tracking
Adding Tracking
What is the Tracking Plan?
The Chord Tracking Plan
The Shopify Tracking Plan
Event Tracking FAQ
EVENT UPDATES PAGE
Email Subscription Payment Event Update
Product Feed Setup
Getting Segment to Production
Consent Management
Installing in Next.js
Installing in Gatsby
Integrations
👩‍💻Developer Tools
Using Chord with Shopify
Docs powered by
Archbee
SEGMENT EVENT TRACKING

What are event tracking

7min



Chord automatically sends customer events to Segment's tracking API from your website front end and the Chord OMS. These events flow through Segment to a Chord data warehouse, where the data is modeled and turned into actionable insights.

Segment structures data flow as "sources" and "destinations." Sources are anything that sends events to Segment, like a website or an app. Destinations are tools or apps that will receive the data flowing from a source. Chord automatically creates several sources and destinations within Segment, but you can also add your sources and destinations. Destinations are an easy way to enable third-party integrations, like advertising and marketing tools. Read more about this concept in Segment's documentation.

How does Chord use Segment?

Chord provisions two sources in your Segment account: the Chord OMS (called the "back-end source") and your website (the "front-end source"). You will have a set of sources per environment. For example, if you have a staging environment and a production environment, you'll see four sources:

  1. "My Company Back-End (Production)"
  2. "My Company Front-End (Production)"
  3. "My Company Back-End (Staging)"
  4. "My Company Front-End (Staging)"

Back-end source

The Chord OMS sends events to the back-end source immediately using the SEGMENT_WRITE_KEY environment variable in your OMS store settings. Verify events are tracked by selecting the source within Segment, and then selecting the Debugger tab. You'll see a live feed of events coming from the source.

The back-end source sends events related to orders and customer accounts, like "Order Completed" and "Subscription Payment Failed." We recommend relying on events from the back-end source whenever possible when setting up third-party integrations because ad blockers or other factors can impact front-end events.

What is the Tracking Plan? includes a list of the events sent by the back-end source.

If you're using Chord with Shopify, you'll see one or more "Shopify Webhook" sources instead of the Chord OMS back-end source. These work similarly. Shopify sends mission-critical events like "Order Completed" to Segment via these sources. The Shopify Tracking Plan reference includes a list of events sent by webhook sources.

Front-end source

The Chord JavaScript SDK sends events to the front-end source from your website. To set this up, you'll need to load Segment's Analytics.js library on your website and do some configuration. Find a Adding Tracking.

Once your website is configured, the Chord SDK automatically sends events to Segment related to customer activity, like "Product Added" and "Promo Code Applied." The Chord SDK also offers functions you can use to instrument your website to track UI-related events, like "Product Clicked." Chord's website starter kits are fully instrumented with UI tracking, so you can use them to get started easily or as examples. Read more about instrumenting your website. Adding Tracking.

What is the Tracking Plan? includes a complete list of the events sent by the front-end source.

Data warehouse destination

Chord also provisions a data warehouse destination in your Segment account. It's connected to front-end and back-end sources. This gives the Chord data pipeline access to all events coming into Segment from Chord sources.

How should you use Segment?

Chord uses tracking data from Segment to provide actionable insights for your business. You can also use Segment directly to integrate your website with other apps and services. Add additional sources and destinations when you need them. Segment has a large catalog of integrations that are available as sources and destinations.

Chord's events follow Segment's e-commerce spec, which many destinations understand so that they can be enabled with minimal configuration.

Updated 18 May 2023
Did this page help you?
PREVIOUS
SEGMENT EVENT TRACKING
NEXT
Adding Tracking
Docs powered by
Archbee
TABLE OF CONTENTS
How does Chord use Segment?
Back-end source
Front-end source
Data warehouse destination
How should you use Segment?
Docs powered by
Archbee