Refersion is an affiliate marketing platform that connects to your e-commerce store and manages every aspect of your program in one place. It helps online shops track sales driven by promoters, influencers, and affiliates. Easier to create, grow, and track your very own affiliate program. Getting set up takes minutes and requires zero technical knowledge.
You can use Refersion to:
The Chargebee-Refersion integration enables you to track and report the purchases that are generated by your affiliates. The report on the aforementioned purchases can be found in your Refersion Account.
If you are an API user, contact [email protected] to set up order tracking for your site via the API.
You need to configure credentials in both Chargebee and Refersion before you get started.
If you already have a Refersion account, follow these steps to set up an integration in Refersion:
If you are new to Refersion, sign up for a Refersion account.
As a part of the signup process, you will be prompted to connect with the platforms you are using along with your website.
Select Chargebee from the platform options listed here.
Configure Refersion's Credentials in Chargebee:
Enter the following information:
Chargebee Thank You Page: This field displays two options in the dropdown as listed here:
Refer to Chargebee's Integrations Options for further details on configuring credentials.
Copy the details under API Keys and Subdomain, as they come in handy in the upcoming step(when you add Refersion's credentials in Chargebee).
Follow these steps to set up the integration from Refersion to Chargebee within the Chargebee store:
Now that you have set up the integration in Refersion log into the Chargebee site to connect to the created Refersion account.
Chargebee can send the order data back to Refersion using Webhooks.
To configure Refersion's webhook in your Chargebee site, sign in to your Chargebee site.
*<!-- REFERSION TRACKING: BEGIN -->* <script src="//SUBDOMAIN.refersion.com/tracker/v3/PUB_KEY.js"></script> <script>_refersion(); </script> *<!-- REFERSION TRACKING: END —->* /* Note to Add the Subdomain and Public Key to the code */
Chargebee's default Thank you page
Chargebee supports its native Thank you page, where the users post their purchase will be shown to signify the completion of the transaction.
You can also choose to redirect users to a custom Thank you page designed by you. Chargebee supports this out of the box. To enable this and then track the conversion on Refersion,
Navigate to plans, select the plan, and add the Redirect URL.
To the configured Redirect URL / Thank you page, add ?rfsn_ci={{Find Domain Here }}.
If your Thank you page's URL was, <https://acmeinc.com/success.html> This would be, **<https://acmeinc.com/success.html*?rfsn_ci={{subscription.id}>}***
Add this JS snippet to your Custom Thank you page.
<!-- REFERSION TRACKING: BEGIN --> <script src="//SUBDOMAIN.refersion.com/tracker/v3/pub_key.js"> </script> </script> function rfsn_getQS(e){e=e.replace(/[\\[]/,"\\\\[").replace(/[\\]]/,"\\\\]"); var t=new RegExp("[\\\\?&]"+e+"=([^&#]*)"),n=t.exec(location.search); return n==null?"":decodeURIComponent(n[1].replace(/\\+/g," "))} if (rfsn_getQS('rfsn_ci')) { _refersion(function(){ _rfsn._addCart(rfsn_getQS('rfsn_ci')); _rfsn._setSource("CHARGEBEE"); });}console.log(rfsn_getQS('rfsn_ci')); </script> <!-- REFERSION TRACKING: END —> /* Note to Add the Subdomain and Public Key to the code */
White list your domain in Chargebee.
This is applicable only when you are using Chargebee's Checkout.
Click Get Test Link, this will generate a unique test URL for you.
Copy the link, open a new incognito window, and paste the URL.
Test the Subscription purchase flow.
Post the purchase, the plan you just bought should reflect as a Conversion on Refersion against the test affiliate. You can see this in the Manage > Conversions section on Refersion.
1.What does Refersion track on my website?
Refersion tracks and reports on two things:
Visits to your website that are a direct result of your affiliates (these are tracked through the affiliate URLs that you set up in your Refersion site)
Orders made on your website (or with Chargebee's hosted pages) are a direct result of your affiliates.
2.Chargebee communicates with Refersion via webhook. Where can I find this webhook on my Refersion site?
The webhook that Chargebee uses to communicate with Refersion needs to be set up manually using your Refersion subdomain, your public API key, and your secret API key. It cannot be copied from your Refersion website and pasted in Chargebee.
3. Where can I find my API keys in Refersion?
Your API keys are available at Account > Settings > Refersion API.
Log in to your Refersion account and navigate to this page to access your API keys.
4.How do I know what version of Refersion to choose in Chargebee?
If you are a new user or are using the Chargebee-Refersion integration for the first time, then choose version two.