In the last few months I have been making extremely good money from promoting CPA offers from Neverblue and so I thought it would be worthwile writing a quick script to keep me from having to log into the site to check my statistics.
Neverblue has a feature called the Global Postback URL which they will ping every time a conversion is made and provide you with some details about the action. The most straight forward thing that I wanted to do was to convert that ping into an email. This works great for me since I’m only promoting the lower volume high profit items right now so I won’t get blasted with 100s of emails every day (I wish I had that problem).
Basically it’s a very simple PHP script that I put on my website. Here’s the neverblueemailer.php PHP script:
< ?php $message = "Neverblue CPA Action Notification\n\n"; $message = $message. "affiliate_id: " . $_GET["af"] . "\n"; $message = $message . "site_id: " . $_GET["site"] . "\n"; $message = $message . "campaign_id: " . $_GET["c"] . "\n"; $message = $message . "action_id: " . $_GET["ac"] . "\n"; $message = $message . "subid: " . $_GET["s"] . "\n"; $message = $message . "unique_conversion_id: " . $_GET["u"] . "\n"; echo $message; $to = 'firstname.lastname@example.org'; $subject = 'Neverblue CPA Action Notification'; $headers = "From: email@example.com\r\nReply-To: firstname.lastname@example.org"; $mail_sent = @mail( $to, $subject, $message, $headers ); echo $mail_sent ? "Mail sent" : "Mail failed"; ?>
You just need to edit your email information.
With that file uploaded to your website you can then hook it up to neverblue. Simply login to your account and put the URL in the Tools -> Global Postback URL -> Enter Your Non Site Specific Global Postback URL section. Then click Save Changes.
The URL you need is going to be something like this:
That’s it. Test it yourself by visiting the URL in your browser. You should immediately get an email in your inbox.
I cannot recommend neverblue enough. They have quickly become my biggest source of online revenue. It’s worth signing up for to give CPA a try.