Skip to main content
Lifetime license included with every purchase

RefTrack: Referral Tracking & Reward Engine

RefTrack: Referral Tracking & Reward Engine ships as a ready-to-import n8n automation package: load the bundled workflow JSON, connect the credentials listed on this page, and activate it on self-hosted n8n or n8n Cloud.

Attribute referral sales, auto-issue a Shopify reward discount code, and enroll every new buyer as a referrer — no $29-249/mo referral app or success fee.

  • Detect a referral code on every new Shopify order automatically, no manual reconciliation
  • Attribute the sale to the right referrer and block self-referral abuse before any reward goes out
  • Auto-create a one-time reward discount code in Shopify via the Admin API the moment a referral converts
  • Email the referrer their reward and the new customer a thank-you note in the same run
  • Turn every non-referred buyer into a new referrer automatically with their own shareable code
  • Log every referral attempt — rewarded, invalid, or self-referred — to a Google Sheet you fully own
  • Replace a $29-249/mo referral platform plus 0.25-10.5% success fees with a one-time template
Google SheetsShopifySMTP
n8n / workflow / referral-tracking-reward-engineActual workflow — not a mockup
Shopify Order Webhook — WebhookShopify Order Webh…WEBHOOKConfig — SetConfigSETExtract Order Data — CodeExtract Order DataCODEIF Has Referral Code — IFIF Has Referral Co…IFFetch Referrers — Google SheetsFetch ReferrersGOOGLE SHEETSMatch Referrer — CodeMatch ReferrerCODEIF Valid Referral Match — IFIF Valid Referral …IFCreate Reward Price Rule — HTTP RequestCreate Reward Pric…HTTP REQUESTCreate Reward Discount Code — HTTP RequestCreate Reward Disc…HTTP REQUESTMark Reward Issued — CodeMark Reward IssuedCODELog Referral To Sheet — Google SheetsLog Referral To Sh…GOOGLE SHEETSEmail Referrer Reward — Send EmailEmail Referrer Rew…SEND EMAILEmail Referred Thank You — Send EmailEmail Referred Tha…SEND EMAILLog Invalid Referral — Google SheetsLog Invalid Referr…GOOGLE SHEETSFetch Referrers For Signup — Google SheetsFetch Referrers Fo…GOOGLE SHEETSCheck New Referrer — CodeCheck New ReferrerCODEIF Is New Referrer — IFIF Is New ReferrerIFLog New Referrer — Google SheetsLog New ReferrerGOOGLE SHEETSEmail Referral Code — Send EmailEmail Referral CodeSEND EMAILAlready Registered — No OpAlready RegisteredNO OP
20 nodes · 19 connections · 1 trigger · 3 in-canvas notesExported from the workflow file you receive — scroll sideways to follow the full path.
One-time
$15
~10 min
setup time

Setup Serviceoptional live install and test. Choose your tier at checkout (not tied to this template's price).

Instant download after payment
Refund as per the Refund Policy for downloadable templates.
Email Support · 24h SLA
Lifetime updates

APIs required
Google SheetsShopifySMTP
Already purchased?
Download RefTrack: Referral Tracking & Reward Engine

Paste the license key from your receipt. It must match this template.

How it works

Workflow summary

One workflow handles everything end-to-end.

  1. 1A new Shopify order arrives via webhook the moment it's placed
  2. 2Checks the order for a referral code in its discount codes or note attributes
  3. 3When a code is found, looks up the referrer in your Google Sheet and confirms the code is valid and not a self-referral
  4. 4Automatically creates a one-time reward discount code in Shopify for the referrer
  5. 5Emails the referrer their reward and emails the new customer a thank-you note
  6. 6Logs every referral attempt — rewarded or rejected — to a Google Sheet for auditing
  7. 7When no referral code was used, registers the buyer as a new referrer with their own unique code
  8. 8Emails the new referrer their shareable referral link so every customer can start earning rewards
Deliverables

What's included with your purchase

Every checkout includes the same practical package so you are never hunting for missing files mid-setup.

  • 01Workflow JSON exports ready to import into your n8n workspace (self-hosted or n8n Cloud).
  • 02Step-by-step guide that walks credential creation, node-by-node checks, and activation.
  • 03Credential checklist for Google Sheets, Shopify, SMTP. Email support@n8ntemplatestore.com if you get stuck — replies within 24 hours (SLA).
  • 04Perpetual (lifetime) use license Your one-time purchase includes an ongoing right to use this template package on n8n instances you control for your own automation — not for resale or public redistribution of the files as a product. Terms & conditions.
  • 05We keep the copyright Workflow JSON, guides, screenshots, and bundled assets stay our copyrighted works (or our licensors'). Payment grants the limited license in our Terms only — it does not transfer ownership.

Need a second opinion before buying? Compare the full catalog, browse more Ecommerce templates, see how n8n compares to Zapier and Make, or read the support policies.

Setup

Three steps to a running n8n automation

01

Import the workflow into n8n

02

Paste your API keys into the credentials panel

03

Press ‘activate’ — you’ll get your first report tomorrow morning

Support

Need help setting up this n8n template?

Beginner-friendly guidance is included. Our support team will help you if you get stuck — email support@n8ntemplatestore.com or visit support.

Email support
Replies within 24 hours (SLA)
Contact
Setup Service4 tiers — your choice
Optional live session — we install, configure, and test on a screen share. Add Setup Serviceat checkout and pick any tier; pricing is not tied to this template's list price.
Book setup
FAQ

About this template

How long does it take to set up RefTrack: Referral Tracking & Reward Engine?
Most people finish in minutes following the guide. If you’ve never used n8n before, budget an hour — the first workflow is always the slowest.
What if I get stuck?
Email support@n8ntemplatestore.com. Free basic support is included with every purchase, and you’ll get a reply from our team within 24 hours. If setup needs more than email, we can schedule a call.
Do I need to pay for Google Sheets?
API costs are separate and go directly to the provider — typically a few dollars a month at most for a solo business. Full breakdown is in the setup guide.
Can I customize the workflow?
Yes, completely. You own the .json — edit nodes, swap in your own prompts, re-wire the logic. Our support team can help you plan customizations over email.
What if it doesn’t work for me?
Refunds are issued only as described in our Refund Policy (https://n8ntemplatestore.com/refund-policy). Or add Setup Service at checkout for a live install and test session — pick any tier you prefer.