Send your store's shopping events to Klaviyo from our servers, so flows like abandoned cart still get them when an ad blocker stops Klaviyo's own script. You need a private API key and your Public API key (Site ID). Both are on the same Klaviyo page.
1. Create a private API key
- In Klaviyo, click your account name (bottom left) → Settings → API keys.
- Click Create Private API Key and name it
PixelRelay. - Choose Custom Key. Set Events to Full Access and Profiles to Read Access. Leave everything else on No Access.
- Click Create and copy the key. Klaviyo only shows it once.
2. Copy your Site ID
On the same API keys page, copy your Public API Key / Site ID. It's 6 characters, like
ABC123.3. Connect in PixelRelay
- In PixelRelay, go to Connections → Klaviyo → Connect.
- Paste the Private API key and the Public API key (Site ID). Both are required.
- Event naming: keep Standard Klaviyo metrics (recommended) so your existing flows and reports pick the events up.
- Using Klaviyo's Shopify app? Tick Klaviyo's native Shopify app is installed and keep Send a separate PixelRelay copy (recommended).
- Click Connect.
Saving doesn't start sending yet. Editing later? Leave Private API key blank to keep the saved one.
Turn off your old Klaviyo tracking
Keep Klaviyo's Shopify app installed. Set the native-app option above, and remove any old hand-pasted Klaviyo tracking code. Turn off old Klaviyo tracking walks through it.
Turn it on
In Guided setup → Switch & enable, work through Switch over Klaviyo, click Mark as done on each item, then click Enable Klaviyo tracking.
Check it's working
- Browse your store with a test email, add something to your cart and start checkout.
- In Klaviyo, open Analytics → Metrics and look for the events (allow a few minutes).
- In PixelRelay, Reports → Event log shows each event and whether Klaviyo accepted it.
Troubleshooting
| What you see | What to do |
|---|---|
| Private API key is required or Public API key (Site ID) is required | Both are needed the first time. When editing, leave the private key blank to keep the saved one. |
| Klaviyo rejects events | Check the key has Events: Full Access and Profiles: Read Access. If not, create a new key and paste it in Edit. |
| No Started Checkout or Placed Order from PixelRelay | With the separate copy, look for PixelRelay Started Checkout and PixelRelay Placed Order. |
More fixes in How Klaviyo tracking works.
Learn more
- How Klaviyo tracking works: what gets sent, the separate copy, and how shoppers are matched
- Turn off old Klaviyo tracking
- Connect Recharge for subscription events in Klaviyo
Need help? Email [email protected]