This integration allows you to track and manage affiliate sales and commissions for your PayWhirl subscription management system.
1. Within PayWhirl, locate the Apps and Integration section and install Custom Tracking Scripts.
2. Insert the Tapfiliate tracking code in the Every Page box and hit Save.
<script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
<script type="text/javascript">
(function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){
(t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');
tap('create', 'YOUR ACCOUNT ID', { integration: "paywhirl" });
tap('detect');
</script>
Make sure to replace YOUR ACCOUNT ID with your actual account id.
3. Our customers commonly configure PayWhirl in two distinct manners: for one-off purchases/commissions or recurring commissions. Tapfiliate has created integrations for both of these cases.
Choose the appropriate code based on your scenario and insert it into the designated "Conversion page" box.
1 - Recurring commissions:
<script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
<script type="text/javascript">
(function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){
(t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');
tap('create', 'YOUR ACCOUNT ID', { integration: "paywhirl" });
tap('customer', '{{ customer.id }}');
</script>
Remember to replace 'YOUR ACCOUNT ID' with your actual account ID.
You can set up the actual recurring commissions using Zapier.
2 - One-off commissions:
<script src="https://script.tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
<script type="text/javascript">
(function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){
(t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');
tap('create', 'YOUR ACCOUNT ID', { integration: "paywhirl" });
tap('conversion', '{{ invoice.id }}', {{ invoice.subtotal }});
</script>
Make sure to replace YOUR ACCOUNT ID with your actual account id.
4. Click the "Save" button, and you've successfully completed the process!
You also have the option to take a look at our Paywhirl integration guide available here.
Before you roll out your program, make sure to conduct a test conversion. This step will allow you to verify your setup's precision and full functionality before moving forward.