Tutorial + Script: Clickbank Sales Notifications (via email)

by 27 replies
34
Hi

I remember a time when I was login to my clickbank account several times per day to check my stats

I think this is a quite typical behavior for affiliate marketers.

I have just prepared a little free script for all of you the compulsive stat checkers

Instead of going to clickbank to check your stats you will now be able to receive an email each time a transaction occurs and in realtime.

I'm tracking:

1/ Initial sales
2/ Recurring billings
3/ Cancellation of recurring billings
4/ Refunds

If you use this script you will receive emails like these ones:



If you open an email you will get the full details about the transaction.
The amount, the customer info, the sold/refunded product etc...

Ok so here is how to use this script.

STEP 1:
Login to your clickbank account.

STEP 2:
Display that page (Account Settings / My Site):


STEP 3:
Scroll down until you see the "Advanced Tools", then click on Edit.


STEP 4:
You will have to request access to the instant notification feature. Just click on the "request access" link:


... it will expand the box and display several options, select everything like shown in the screenshot below then click on save:



STEP 5:
After saving you should get your request immediately accepted. So now let's configure the script....

Once again scroll down until you see the "Advanced Tools", then click on Edit.


STEP 6:
This time you will see this:


For the secret key enter a value that can be up to 16 letters or digits and must be in ALL CAPS.
For this example, let's say that our secret key is VITAVEE101.

For the Instant Notification URL 1, enter this:
Code:
http://vitavee.com/cbinstantsalesnotifications.php?email=YOUR-EMAIL-ADDRESS&key=VITAVEE101
Make sure to replace YOUR-EMAIL-ADDRESS by your real email address and VITAVEE101 by the secret key you have chosen.

Then click on test to see if it is setup correctly. If it is you should receive an email such as this one:

Code:
SUBJECT: ClickBank Notification - TEST

BODY:
Product: A passed in title
Publisher: vitavee
Affiliate ID: 
Transaction: TEST
Amount (in cents): 100
Customer Name: Test User
Customer Email: testuser@somesite.com
TID:
Hope this will be helpful for all the compulsive clickbank stats checkers

Vita Vee

UPDATE:

As discussed further in this thread if you do use the script directly from my servers I technically have the ability to . This includes all the information you are receiving yourself: the product name, the price, etc...

This information could allow me to SPY on you and see which products are popular.

Of course, I will never do this, however I DO NOT recommend you to use the script directly from my server - if you have some technical knowledge please do upload the script directly on YOUR servers and run it from there.

I have posted a link to the PHP code below, in that same thread - here is a direct link to that post:

http://www.warriorforum.com/main-int...ml#post2255335

It is actually very easy to use that script directly on your server, you just need an FTP client such as FileZilla and your server username/password.

Hope that helps

Vita Vee
#main internet marketing discussion forum #clickbank #email #notifications #sales #tutorial
  • cool! as soon as i start making sales ill use this haha
  • Thanks for the share. Now, if I can only stop checking my emails :-)
  • Hi Vitavee - Could you please post the actual code of the cbinstantsalesnotifications.php file so I don't have to go through your servers?

    Much obliged,

    wwwBaron
  • Maybe I am missing it, but where is the link to the code?

    Thanks,

    John
    • [1] reply
    • PHP Code is hosted on Vita Vee's servers. It's also Vita Vee's servers that are dispatching the emails to you from what I understand.

      • [2] replies
  • You must have been reading my mind Vitavee! This is so helpful! This is what I call valuable content. Please tell me what to put in place of vitavee.com which is directly after the htp://. I put my email addreaa and code at the end.
  • If you go this route, IonCube offer "Encoder" and "Package Foundry", which is a code encoder and an automatic installer, respectively.

    cheers
    Sam
  • I don't like this script. I think receiving emails everytime I make a sale will just give me unnecessary interuptions I don't need. Seriously, how hard is it to press refresh on your browser anyway?
  • I'm glad that some of you found this useful.

    I understand the concerns of some of you concerning security, the reason I decided to put this on my server was for the ease of use as non techie persons don't have anything to install. They just have to follow the mentioned steps and voila.

    But for those of you who prefer to have the script running on your own servers, I'm going to edit my initial post and add it there.
  • Ok I don't know why but it seems I can't post the PHP code, each time I try I end up on a blank page.

    I use the PHP tag to enclose it so I really don't know why it doesn't let me post it.

    So I have published the code here if you want to get it:

    TUTORIAL + SCRIPT: Clickbank Sales Notifications (via email)

    The code is nothing fancy so I don't need to encrypt anything, it is based on clickbank's documentation that can be found here:

    https://xxx.accounts.clickbank.com/h...ation-service/

    Vita Vee
  • vitavee much better that you don't even encourage people to share that data with you - it is not just that it is mission critical... it is also private data.

    In Europe, North America etc there are so many rules and regulations on how private data can/should be handled.

    I know there are services that monitor affiliate stats in various ways... in theory they are also contractually obligated to protect the data, probably not use it etc, and hopefully have liability insurance as if personal sales transaction data was ever "discovered" by a hacker, I think whoever was meant to be keeping the data secure wouldn't be popular.
  • Hey Andy,

    Thanks a lot for your input.

    Many people told me they were happy with the script running from my server so I can't remove it now as some are already using it.

    But I have just updated my initial post to tell the next readers that I DO NOT recommend them to use the script directly from my servers and I explained why.

    Thanks again
    • [1] reply
    • For whatever personal reasoning, there will be those that won't see any detriment in accessing your script(s) in this manner. Yet, you WILL be responsible IF their data is compromised; (unless you've gotten together with a lawyer and worded a contract that these individuals have agreed to absolving you from any of that responsibility and/or liability).

      Just a heads up...
      tecHead
  • Banned
    [DELETED]
  • @tecHead Thanks for the words of warning. I have no problem with that responsibility since I'm not storing any information. As soon as the info is received from clickbank it is immediately emailed to the affiliate and that's all.

    So I don't think there's any way for that data to be compromised in any way. If you see any please do let me know.

    @JaseJames you're welcome
    • [1] reply
    • I don't wanna come off as putting your efforts down; I applaud you for wanting to lend a hand via your programming skills. This is a good thing.

      I just want you to be careful, is all.

      As soon as you add another point on the line that information travels, you're essentially opening an access point; unless your script's security is sufficient enough to handle many types of infiltration attempts. As well as scalable enough to incorporate mods for any new threats without any major recoding.

      I'm not going to go down the line pointing out different threats because its not my program; (thus not my job); and you may have very well plugged up all the possible threats, (that you know of).

      Just be careful.
  • Data and your servers can always be compromised

    That is why I have been so persistently bashing tell a friend scripts that ask for Google account details for 2 years.

    I have even upset some pretty big names in the middle of a launch over it.

    Evil people do evil things.

    Plus I wouldn't be so sure you don't store anything as in many ways you are legally obligated to store copies of emails sent from a server for a number of years, especially in Europe.
    Plus there is a high chance some data is in your server logs.
  • Note: tecHead is a much better programmer than I am, I just tinker but surely the script should only accept connections from Clickbank and sanitize all input.

    One of the reasons lots of code is released under GPL is to protect against liability but you should do your utmost to make sure whatever you write is as secure as possible.
    • [ 1 ] Thanks
  • Andy & TecHead I totally understand that you don't try to put what I shared down, I appreciate your input and that's why I updated my initial post.

    At the same time I want to confirm once again that I don't use any of the data, I don't store it myself (though as Andy mentioned it might be stored in the server logs).

    The code is the one I shared a few posts above, the source is so short and so simple I don't see any way to exploit it and I hope there is not

    But once again I want to recommend everyone to PUT this code onto their own servers instead of using it from mine, that will also save me some bandwidth
    • [1] reply
    • Thanks for the script you put together, uploaded the edited php file to my own server!

      This is just what I needed man

      ..Oh and by the way, set the version of Instant Notifications to version '1.0' if you want it to work as an affiliate, tested it on version '1.0' a few times and it works perfectly, instantly too might I add

      Update - Also edited the email title setting so it says "You've made a sale - ClickBank", I like it that way
      • [1] reply
  • This is AWESOME! Thanks!
  • This is a great share and stuff but the problem with these kind of things is it's just another distraction that'll delay your success.

    James Scholes
  • Great.. But first I need start earning money in CB .. then I will try
  • It is a just good idea~~ but now our strategy is not aim at this way
  • [DELETED]

Next Topics on Trending Feed