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 thehead section of your website, on every page.
Step 2: Connect Zylvie in Referly
Get your API key from Zylvie
Open the integrations dialog
Fill in both fields
Connect
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.Open custom fields
Name it
PLG Affiliate Id, spelled exactly like that.Choose the type
Choose the products
Save
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.Open a checkout page
Open developer tools
Select the field
Note the name
name value: something like custom_field__N6maydmW. Write it down exactly, including the two underscores. You’ll paste it into the next two steps.Step 5: Add the code that fills the field in
Open your custom code settings
Paste this into the head code
Set the field name
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.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.
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.Open workflows
Choose the trigger
Paste the address
Referly Integration.Save, then repeat
- 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.
Step 8: Test it end to end
Visit your store through an affiliate link
Check the click landed
Open a checkout page and check the field
Place an order
Check the result in Referly
Clean up
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.
Troubleshooting
I can't see Zylvie in the integrations list
I can't see Zylvie in the integrations list
Nothing is appearing in Referly
Nothing is appearing in Referly
The field isn't being filled in
The field isn't being filled in
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.Customers can see the PLG Affiliate Id box
Customers can see the PLG Affiliate Id box
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.Some products are tracked and others aren't
Some products are tracked and others aren't
Sales come through but leads don't
Sales come through but leads don't
A refund isn't showing in Referly
A refund isn't showing in Referly