website logo
Navigate through spaces
⌘K
OVERVIEW
ORDER MANAGEMENT (OMS)
SHIPPING - SETUP
Shipping Methods
Shipping Zones
Shipping Method Setup Examples
TAXES - Setup
Tax Automation with Stripe Tax
Tax Automation with Avalara
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 

SDK Reference

1min

The Next.js starter kit includes a set of React hooks that offer an easy way to interact with Shopify's order management system, for common operations like adding items to a cart. These hooks provide access to SDK methods that handle communication with Shopify's order management system and keep the site's Redux state up to date. They also automatically send tracking events to Segment.

Hook

Description

useAnalytics

Provides support for sending UI-related tracking events to Segment.

useAuth

Provides support for user authentication with a Shopify customer account.

useCart

Returns the current shopping cart, and functions for creating and interacting with the shopping cart.

useTranslate

Provides support for internationalization

useUser

Returns the current user, and functions for loading data about the user.



Updated 03 Mar 2023
Did this page help you?
Yes
No
PREVIOUS
Developing
NEXT
useAnalytics
Docs powered by archbee