Home >
Tracking Campaigns >
Voluum
Finally figured out how to auto-post Clickbank conversions to Voluum. (14)
04-27-2015 08:43 PM
#1
coalission (Banned)
Finally figured out how to auto-post Clickbank conversions to Voluum.
Thought this might be a big timesaver to people using Clickbank with Voluum, as uploading the TIDs gets tiring after a while. I don't know if this has been posted before, but I know I've searched before for a solution and couldn't find it.
First, create a .php file, and use the below code:
Code:
<?php
if($_POST['ctransaction'] == 'SALE' or $_POST['ctransaction'] == 'BILL' or $_POST['ctransaction'] == 'TEST') {
$transid = $_POST['ctid'];
$advsub = $_POST['ccustemail'] . '-' . $_POST['ctransreceipt'];
if($_POST['ctransaction'] == 'BILL') { $amount = $_POST['crebillamnt']; }
else { $amount = $_POST['corderamount']; }
$amount = $amount / 100; // Clickbank sends the amount in cents
$convurl = "http://xxxxx.trackvoluum.com/postback?cid={$transid}&payout={$amount}&txid={$advsub}";
$convresp = file_get_contents($convurl);
}
?>
Change the value of $convurl to your
Voluum postback URL, and make sure the tokens go into the correct parameters. Upload the file to your server.
Now go to your Clickbank account, go to Settings > My Site, and then under Advanced Tools, click Edit. For the Secret Key, you can put anything, and then under the first Instant Notification URL spot, put the URL to the .php file you created earlier.
Make sure you select version 4.0, as 6.0 won't work because it's a different format, and then click "Test IPN". It should change to "Verified", and you're all done.
04-27-2015 10:18 PM
#2
dynamicsoul (Member)
If I could thank you twice, I would. Going to test this out!!!
05-07-2015 02:53 AM
#3
tman65 (Member)
No, you deserve a medal, seriously, Voluum support couldn't give a decent answer and also mentioned this was not voted as important so unlikely anything would be done to make automatic conversions possible with Clickbank.
Will try this too, but 1000x thanks!!
05-07-2015 02:57 AM
#4
coalission (Banned)
Just a heads up, I realized sometimes the conversions would post much larger than the actual amount, like over $1000, and I think the reason must have something to do with how Clickbank sends the order amount, which is in cents. That's why the "$amount / 100" is there, but I'm thinking there are some transactions where they send it back with more than 2 digits for the cents, like tenths of cents or something, and it'll throw everything off. Not sure, but maybe someone with better experience can add a workaround.
05-12-2015 12:24 PM
#5
dazed1 (Member)
Wow, this has been giving me the biggest headache!
I've also been back and forth with Voluum support over the last few days and got the following final response "As mentioned previously, unfortunately Clickbank's INS isn't currently integrated in Voluum to track conversion events. As such, I'll consult with our development team to see if integration of CB's INS is viable in the near future."
I'm going to give this php a try, in the meantime I hope someone can come up with a workaround for the tenth of cents problem!
05-12-2015 12:33 PM
#6
dazed1 (Member)
Just one thing, based on the tokens in your php, what does your hop look like?
At the moment I'm using the following as suggested by Voluum - http://xxxx.hop.clickbank.net/?tid={transaction_id}&cid={clickid}
Thanks
05-12-2015 11:33 PM
#7
coalission (Banned)
I answered you in PMs, but for anyone else, your hoplink should look like this: http://xxxx.hop.clickbank.net/?tid={clickid}
05-13-2015 01:18 AM
#8
tman65 (Member)
And if you pass keyword and querystring from Bing your Voluum tracking link looks like: http://YOURvoluumTrackingDomain.com/eadfdeiei383838383383838/?KeyWord={KeyWord}&QueryString={QueryString}
05-13-2015 03:27 AM
#9
zeno (Administrator)
Yep, it's not too hard to set up but the information isn't so easy to find.
I did figure this out using CB-trax but the product is no longer available and I didn't feel comfortable disseminating their code without permission (http://stmforum.com/forum/showthread...8and-others%29).
I'm glad someone else has figured something out!
05-13-2015 07:26 AM
#10
EpicTrends ()

Originally Posted by
coalission
Thought this might be a big timesaver to people using Clickbank with
Voluum, as uploading the TIDs gets tiring after a while. I don't know if this has been posted before, but I know I've searched before for a solution and couldn't find it.
First, create a .php file, and use the below code:
Code:
<?php
if($_POST['ctransaction'] == 'SALE' or $_POST['ctransaction'] == 'BILL' or $_POST['ctransaction'] == 'TEST') {
$transid = $_POST['ctid'];
$advsub = $_POST['ccustemail'] . '-' . $_POST['ctransreceipt'];
if($_POST['ctransaction'] == 'BILL') { $amount = $_POST['crebillamnt']; }
else { $amount = $_POST['corderamount']; }
$amount = $amount / 100; // Clickbank sends the amount in cents
$convurl = "http://xxxxx.trackvoluum.com/postback?cid={$transid}&payout={$amount}&txid={$advsub}";
$convresp = file_get_contents($convurl);
}
?>
Change the value of $convurl to your
Voluum postback URL, and make sure the tokens go into the correct parameters. Upload the file to your server.
Now go to your Clickbank account, go to Settings > My Site, and then under Advanced Tools, click Edit. For the Secret Key, you can put anything, and then under the first Instant Notification URL spot, put the URL to the .php file you created earlier.
Make sure you select version 4.0, as 6.0 won't work because it's a different format, and then click "Test IPN". It should change to "Verified", and you're all done.
Thanks for this because I'm actually about to push out CB products via FB, I was told to get Voluum setup for it too.
04-07-2016 12:25 AM
#11
edric2233 (Member)
Would Voluum Automatically Track Clickbank Upsells as well, With this method?
well I'm going to test it and see.
04-07-2016 08:04 AM
#12
johnaff (AMC Alumnus)
This is so awesome its not even funny
04-07-2016 08:05 AM
#13
johnaff (AMC Alumnus)
I used to just manually upload my clickids back to Voluum at the end of each day
07-05-2017 06:09 AM
#14
cedarman (Member)
Is this method working? Would Voluum automatically track Clickbank upsells and rebills as well with this method?
Home >
Tracking Campaigns >
Voluum