Referrals and Affiliates app for Shopify - Knowledgebase
Back to ShopjarInstall the app
  • Getting Started with Shopjar
    • Install Shopjar
    • Enable Extension in Theme
  • Referral Program
    • Creating a Referral Program
    • Edit/Update Program
    • CONFIGURE A REFERRAL PROGRAM
      • Customize Rewards
    • BRANDING AND POPUPS
      • Reward Claim Pop-up
      • Referral Landing Page
      • Thank you page widget with extension.
      • Referral Widget
    • EMAIL AUTOMATION FOR REFERRAL
      • Email Customization
    • TRACKING REFERRALS
      • Sales
      • Referrer Rewards
      • Friend Rewards
      • Referral Invites
      • Discount Report
    • SETTINGS
      • Social Shareable option
      • Available Shortcodes
      • Reward Approval
      • Who can become a member of the Referral Program
      • Referral link destination
  • AFFILIATE PROGRAM
    • Creating an Affiliate Program
    • Edit/Update Affiliate Program
    • CONFIGURE AN AFFILIATE PROGRAM
      • Customise Commission
    • AFFILIATE SIGN-UP FORM
    • EMAIL AUTOMATION FOR AFFILIATE PROGRAM
      • Email Customization
    • TRACKING AFFILIATES
      • Sales
      • Commission Earnings
      • Payout to Affiliates
      • Payment Methods
    • SETTINGS
      • Social Share Options
      • Available Shortcodes
      • Reward Approval
      • Converting Affiliate Commission to Coupons
      • Embedded Pages
      • Revoke Commission
      • Affiliate link destination
    • REFERRAL & AFFILIATE SETTINGS
      • Manage Programs
      • Translations
      • Referrer / Affiliate Dashboard
      • Cookie Validity
      • Allow Guest Login via Email OTP
      • Calculate Reward or Commission from
  • INTEGRATION
    • Klaviyo Integration
  • FAQ
    • How the Shopjar referral program works:
    • How to add a logo to the email template
    • How to change the color of the SVG Element in MY account Page
    • How do I change the name of the referral landing page in my store?
    • How to import customers in the member's section
    • How the Affiliate Program in Shopjar works
    • How to bind the coupon code to the affiliate in the member's section
    • How to connect the Customized coupon code to the affiliate?
    • How to Change the "From" Email Address in Shopjar
    • Can customers use multiple coupon codes in a single purchase?
    • How to delete members in my Shopjar app
    • How to Approve Store Access for Shopjar
Powered by GitBook
On this page
  • Integrate Afflr with Klaviyo
  • To get the API Key
  • Klaviyo ShopJar Integration
  • Referral Program Shortcodes
  • Affiliate Program Shortcodes
  • Referral Program Email Triggers
  • Affiliate Program Email Triggers
  • Creating an Email Workflow in Klaviyo
  • Links for Reference

Was this helpful?

  1. INTEGRATION

Klaviyo Integration

Learn how to integrate Klaviyo with ShopJar to send personalized emails for various actions in the referral and affiliate program.

PreviousINTEGRATIONNextFAQ

Last updated 2 months ago

Was this helpful?

Klaviyo provides businesses with advanced email marketing tools for targeted campaigns and higher engagement. It enables data-driven strategies to boost sales and build lasting customer relationships.

Integrate Afflr with Klaviyo

To get the API Key

  1. Click on your account at the bottom left of the page.

  2. Select Settings.

  1. Navigate to API Key

  2. Click Create Private API Key

  1. Provide a name for the API Key.

  2. Select Grant applications full access for every API scope.

  3. Click Create

  4. Copy the API Key.

  1. Visit the Shopjar app.

  2. Navigate to Settings -> Integration.

  3. Under Klaviyo, toggle the enable button.

  1. Paste the API Key.

  2. Click the Update button.

Klaviyo ShopJar Integration

To check if Klaviyo is successfully integrated with ShopJar:

  • Navigate to Klaviyo Home -> Audience -> Profile.

  • Check if "Shopjar Shopjar" is present under the profile.

Klaviyo triggers actions like emails or SMS based on events such as new sign-ups. With ShopJar, you can access five referral triggers and six affiliate triggers, using custom properties to personalize emails with details like store name and affiliate name.

You can check the trigger events and custom properties by navigating to Dashboard -> Audience -> Profile and clicking on the ShopJar ShopJar.

Referral Program Shortcodes

Use these shortcodes to personalize referral emails and notifications with dynamic details like names, links, and rewards.

Property

Definition

Example

{{ event.friend_name }}

Displays friend’s full name (first & last)

John Doe

{{ event.friend_first_name }}

Displays friend’s first name

John

{{ event.friend_last_name }}

Displays friend’s last name

Doe

{{ event.referrer_name }}

Displays referrer’s full name (first & last)

Alice Smith

{{ event.referrer_first_name }}

Displays referrer’s first name

Alice

{{ event.referrer_last_name }}

Displays referrer’s last name

Smith

{{ event.store_name }}

Displays the store name

ShopJar

{{ event.store_url }}

Displays the store URL

https://shopjar.com

{{ event.coupon_code }}

Displays the coupon code

SAVE20

{{ event.coupon_expiry_date }}

Displays the coupon expiry date

2025-12-31

{{ event.rule_title }}

Displays the rule title

Referral Bonus

{{ event.referral_url }}

Displays the referrer’s unique referral URL

https://shopjar.com/ref/123

{{ event.order_value }}

Displays the order value

$100

{{ event.sales_url }}

Displays the all-sales URL

https://shopjar.com/sales

Affiliate Program Shortcodes

Use these shortcodes to personalize affiliate emails and notifications with dynamic details like names, links, and earnings.

Property

Definition

Example

{{ event.affiliate_name }}

Displays affiliate’s full name (first & last)

David Lee

{{ event.affiliate_first_name }}

Displays affiliate’s first name

David

{{ event.affiliate_last_name }}

Displays affiliate’s last name

Lee

{{ event.affiliate_dashboard_url }}

Displays the affiliate’s account page URL

https://shopjar.com/dashboard

{{ event.order_value }}

Displays the order value

$100

Referral Program Email Triggers

These triggers automate referral emails based on key actions like invites, rewards, and successful referrals.

Trigger

Description

Recipient

Notify after referral sale

Sent when a referral sale is successfully completed.

Admin

Invitation Email

Sent when a referrer invites their friends to join.

Friend

Reward Claimed Email

Sent when a friend successfully claims their referral reward.

Friend

Welcome Email

Sent to a referrer when they join the referral program.

Referrer

Referral Reward Earned Email

Sent when a referrer earns a reward for a successful referral.

Referrer

Affiliate Program Email Triggers

These triggers automate affiliate emails based on key actions like application approvals, commissions earned, and payouts processed.

Triggers

Description

Recipient

Notify after affiliate sale

Sent when an affiliate sale is successfully completed.

Admin

Affiliate Application Received

Sent when a new affiliate application is submitted.

Admin

Affiliate Application Approved

Sent when an affiliate's application is approved.

Affiliate

Commission Earned Notification

Sent when an affiliate earns a commission.

Affiliate

Payout Processed Notification

Sent when a payout is processed for an affiliate.

Affiliate

Commission Redeemed as Coupon

Sent when an affiliate redeems a commission as a coupon.

Affiliate

Creating an Email Workflow in Klaviyo

Example: Sending an Email for "Give $10, Get $10" Program When a New Sale is Made

  1. Navigate to Dashboard -> Flows.

  2. Click Create Flow.

3. Select Build Your Own

  1. Enter the Flow Name and select the Tag or Create New Tag.

  2. Click Create Flow.

6. Choose Your Metrics and click on API.

  1. Select ShopJar - Shopjar-Email when a friend claims a reward.

  1. Click Save

  2. Check the metrics and click Save on the Set Up Trigger page.

  3. Confirm and save the trigger selection.

  1. Drag and drop Email from the Actions Tab.

  1. Click on Email#1 to customize your email.

  2. Click Select Template.

  1. Choose an existing template or create a blank email.

  1. Add Custom Properties by clicking Add Personalization.

  1. Insert the required properties and preview the content.

  1. You can preview the mail content by clicking Preview & test.

  1. Click Save.

  2. To make the flow live, click Review and Turn On.

20. In the Review and Turn On dialog box, choose Live from the dropdown and click Turn On

Similarly, you can create other trigger events to fit your Referral and affiliate program requirements

Links for Reference

Referral Program Shortcodes
Affiliate Program Shortcodes
Referral Program Email Triggers
Affiliate Program Email Triggers
Klaviyo Settings
Create Private API
Provide Full Access Key
Copy API Key
Klaviyo Shopjar Integration
Shopjar Shopjar in Klaviyo
Klaviyo Events and Custom Properties
Create Flow
Click Build your own
Create Flow
API Metrics
New Event
Confirm and Save trigger
Add Email Trigger
Select Template
Choose a Template
Add Personalization
Add Custome Properties
Preview and Save Template
Review and Save
Review and Turn On - Click Update Status
Click Save