Skip to main content
Klaviyo is an email and SMS marketing platform. Connected to Shopjar, it receives every referral and affiliate event from your store — so you can trigger Klaviyo flows on program activity and personalize the emails with member names, links, coupons, and amounts. (Growth plan)

Step 1 — Get your Klaviyo API key

1

Open Klaviyo's settings

In Klaviyo, click your account name at the bottom left and select Settings.
2

Create a Private API Key

Go to the API Keys section and click Create Private API Key.
3

Grant full access

Name the key (e.g. Shopjar), select Grant applications full access for every API scope, and click Create.
Full access on all scopes is required — a restricted key connects but fails when Shopjar tries to send events.
4

Copy the key

Copy the key now — Klaviyo only shows it once.

Step 2 — Connect Shopjar

1

Open the integration

In Shopjar, go to Settings → Integrations and click Configure on the Klaviyo card.
2

Enable and save

Turn on Enable Klaviyo Integration, paste the API key, and save. The card’s badge shows Active once the key verifies.

Step 3 — Verify it’s working

In Klaviyo, go to Audience → Profiles. After the first event fires (or after you trigger some test activity), you’ll see profiles carrying Shopjar’s custom properties. Open a profile to see its activity feed — Shopjar events appear there with their properties, which is also the easiest place to confirm exact property names while building emails.

How the data is organized

Shopjar sends two kinds of data:
  • Events (metrics) — one per program moment, all named with the Shopjar- prefix. Use them as flow triggers. Their properties are referenced in emails as {{ event.sj_event_... }}.
  • Profile properties — details stored on the member’s Klaviyo profile, referenced as {{ person|lookup:'sj_member_...' }}:

Referral triggers (5)

Shopjar-Welcome email

Shopjar-Invitation Email

Shopjar-Email when a friend claims a reward

Shopjar-Email when referrer earns a reward for successful referral

Shopjar-Notify after referral sale

Affiliate triggers (7)

Application received (admin) & Application rejected

Application approved

Commission earned

Payout processed

Commission redeemed as coupon

Affiliate sale (admin)

Stores connected before the current property scheme receive the same events with unprefixed property names (e.g. referrer_name instead of sj_event_referrer_name). When in doubt, open a profile’s activity feed in Klaviyo — it shows the exact property names your store sends.

Build a flow: step by step

Example: email the friend when they claim a reward.
1

Create the flow

In Klaviyo, go to Flows → Create Flow → Build Your Own, name the flow, and create it.
2

Pick the Shopjar trigger

Choose a metric trigger, open the API category, and select Shopjar-Email when a friend claims a reward. Save the trigger.
3

Add the email

Drag Email from the Actions tab into the flow, click it, and pick a template.
4

Personalize with Shopjar properties

Click Add Personalization in the editor and insert the event properties — for this trigger, for example {{ event.sj_event_friend_first_name }} and {{ event.sj_event_coupon_code }} (full table above). Preview with Preview & test.
5

Turn it on

Click Review and Turn On, set the flow to Live, and confirm.
The next reward claim triggers your email automatically.
When a Klaviyo flow replaces one of Shopjar’s own email notifications, toggle the Shopjar template off so members don’t receive both.

Need help?

Book a call

Schedule a free call with our team for personal setup assistance.

Contact support

Chat with us directly — we’re happy to help with any question.

Install Shopjar

Get Shopjar Referral & Affiliate Marketing from the Shopify App Store.