Skip to main content
Referly tracks Zylvie sales through a hidden custom field on your checkout. The tracking script works out who referred a visitor, fills that field in behind the scenes, and Zylvie sends the field’s value to Referly along with the order — which is how the right affiliate gets credited. It’s the most involved setup of any Referly integration, because Zylvie doesn’t have a built-in place to put a referral. Set aside half an hour, and work through the steps in order — each one depends on the one before it.
Zylvie is a private integration, so the Zylvie option won’t appear in your dashboard until it’s switched on for your account. Email support@referly.so and ask for Zylvie to be enabled, then come back to this guide.

What the Zylvie integration can and can’t do

Before you start

You’ll need:
  • Zylvie enabled on your Referly account. See the note above.
  • Admin access to your Zylvie store, so you can add custom fields, custom code, and workflows.
  • A browser you can open developer tools in. One step involves looking up a field name on your own checkout page. It sounds technical but it’s four clicks, and the steps below walk you through it.

Step 1: Install the tracking script on your site

Everything else depends on this. The script recognises visitors who arrived from an affiliate link, records the click, and makes the referral available for the checkout field to pick up. Copy the snippet from Step 1 of the Zylvie guide in Referly — open your program, go to Settings, then Integrations, and select the Zylvie card — and paste it inside the head section of your website, on every page.
Tracking script

Step 2: Connect Zylvie in Referly

1

Get your API key from Zylvie

In your Zylvie dashboard, go to Settings, then API, and copy your API key.
2

Open the integrations dialog

In Referly, open your program, go to Settings, then Integrations, select Connect Integration in the top right, and choose Zylvie.
3

Fill in both fields

Paste your key into API key, and put your Zylvie store name into Site.
4

Connect

Select Connect. A green Connected badge appears with your store name when it’s saved.
These fields lock once saved. To change the key or point at a different store, select Disconnect and connect again.

Step 3: Create the custom field in Zylvie

This is the field that carries the referral through checkout. The label matters — Referly looks for that exact name on incoming orders, so get it right.
1

Open custom fields

In your Zylvie dashboard, go to your Settings page, then Custom Fields, then Create Custom Field.
2

Name it

Set the Name/Label to PLG Affiliate Id, spelled exactly like that.
3

Choose the type

Choose Text field where users can type anything.
4

Choose the products

Under Apply to which products, select All products, or pick the specific products you want Referly to track. A product without this field can’t be attributed to an affiliate.
5

Save

Select Save Changes.

Step 4: Find the field’s name on your checkout

Zylvie gives every custom field its own internal name, and the code in the next step needs it. You’ll find it by looking at one of your own checkout pages.
1

Open a checkout page

Go to the checkout page of any product you applied the field to in Step 3. You should see a PLG Affiliate Id box on the form.
2

Open developer tools

Right-click anywhere on the page and choose Inspect. A panel opens showing the page’s underlying code.
3

Select the field

In that panel, select the icon for picking an element on the page — usually an arrow over a square, in the top-left of the panel — then click the PLG Affiliate Id box on the form.
4

Note the name

The panel highlights that field’s code. Look for its name value: something like custom_field__N6maydmW. Write it down exactly, including the two underscores. You’ll paste it into the next two steps.
Copy the part after custom_field__ separately as well — the code in Step 6 needs that shorter piece on its own.

Step 5: Add the code that fills the field in

1

Open your custom code settings

In your Zylvie dashboard, go to your profile settings page and select Custom Code.
2

Paste this into the head code

Add the snippet below to the head code section.
3

Set the field name

Replace the value of fieldName with the name you noted in Step 4. This is the one thing you must change — if it’s wrong, the field stays empty and nothing gets tracked.
Fill the referral field
Make sure the tracking script from Step 1 is also present on your checkout pages — this snippet reads the referral that script works out.

Step 6: Hide the field from your customers

Right now your customers can see an odd PLG Affiliate Id box on your checkout. This step hides both the box and its label, so the form looks normal while the value still gets submitted. Add this to the same head code section, and set both values from what you noted in Step 4: fieldName is the full name, and labelName is the same thing with custom_field__ removed from the front.
Hide the referral field
Load one of your checkout pages after saving and check the box is gone. Leaving it visible invites customers to type into it, and a customer-typed value credits the wrong affiliate — or nobody.

Step 7: Create the workflows that report to Referly

This is how Zylvie tells Referly that something happened. You create one workflow per event you want tracked, all pointing at the same address.
1

Open workflows

In your Zylvie account, go to Automations, then Workflows, then Webhooks, and select Create Workflow.
2

Choose the trigger

Pick the first trigger from the list below.
3

Paste the address

Copy the webhook address from the Zylvie guide in Referly and paste it in. It already includes your program’s details, so copy it rather than typing it out. Name the workflow Referly Integration.
4

Save, then repeat

Save it, then create another workflow for each remaining trigger. Zylvie needs a separate workflow per trigger — one workflow won’t cover all three.
Create one workflow for each of these:
  • You received a new sale — a visitor paid for a product.
  • You received a new lead — a visitor submitted their name and email for a free product.
  • A visitor subscribed to a subscription product.
You can create just the ones you need. If you don’t sell free products, skip the lead trigger; if you have no subscriptions, skip that one.

Step 8: Test it end to end

1

Visit your store through an affiliate link

Use a real affiliate’s referral link from your Affiliates page, in a private window.
2

Check the click landed

In Referly, open that affiliate’s record and confirm the click count went up. If it didn’t, the tracking script isn’t running.
3

Open a checkout page and check the field

Open the checkout for one of your products. The PLG Affiliate Id box should be invisible. Using Inspect again, confirm the hidden field now has a value in it rather than being empty.
4

Place an order

Complete a purchase, or submit for one of your free products to test the lead path.
5

Check the result in Referly

Open Customers to find the buyer attached to the affiliate, Sales to confirm the amount and products, and Rewards to see the commission.
6

Clean up

Delete your test customer and sale from your Customers and Sales pages so they don’t skew your reporting.

Handling refunds

Zylvie refunds don’t reach Referly, so this one is manual. When you refund a Zylvie order, open the matching sale on your Sales page in Referly and delete or adjust it, so the affiliate isn’t paid on money you gave back. If you approve rewards on a schedule, catching refunds before the payout hold period ends means nothing is paid out in error. See Reward holds and Approve or decline rewards.

Disconnecting

There are two parts:
  • To stop tracking, delete the Referly workflows in your Zylvie account under Automations, then Workflows.
  • To remove your API key, open Connect Integration in Referly, select Zylvie, and choose Disconnect.
You may also want to remove the two snippets from your Zylvie custom code and delete the custom field, so your checkout is left clean. Nothing already tracked is deleted. Orders placed while the workflows are gone are not recorded and won’t be picked up later.

Troubleshooting

Zylvie is a private integration and has to be switched on for your account. Email support@referly.so to request it.
Work backwards. Open a checkout page through an affiliate link and inspect the hidden field — if it’s empty, the problem is the Step 5 code, most often a mismatched field name. If it has a value, check your workflows exist in Zylvie and point at the right address.
Three things to check: the fieldName in the Step 5 code exactly matches what you saw in Step 4, the tracking script from Step 1 is on your checkout pages, and you actually arrived through an affiliate link. Test in a private window.
The Step 6 code isn’t matching. Check both values: fieldName is the whole name, and labelName is the same name with custom_field__ removed from the front. They are different values, and mixing them up is the usual cause.
The custom field is only applied to some of your products. Open Custom Fields in your Zylvie settings and set the field to apply to all the products you want tracked.
Each trigger needs its own workflow in Zylvie. Create a separate workflow for the new-lead trigger pointing at the same address.
That’s expected — Zylvie refunds aren’t reported back. Adjust the sale by hand on your Sales page.

Product-based commissions

Pay different rates on different Zylvie products.

Managing rewards

Approve, hold, and adjust what your affiliates earn.

Add a sale

Record a sale by hand when an order wasn’t attributed.

Integrations overview

See every tool Referly connects to.
Last modified on July 21, 2026