Tutorial + Script: Clickbank Sales Notifications (via email)

27 replies
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 KNOW ALL YOUR OCCURING CB TRANSACTIONS. 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
#clickbank #email #notifications #sales #tutorial
  • Profile picture of the author schazz
    cool! as soon as i start making sales ill use this haha
    {{ DiscussionBoard.errors[2252216].message }}
  • Profile picture of the author cbreceipt
    Thanks for the share. Now, if I can only stop checking my emails :-)
    {{ DiscussionBoard.errors[2252358].message }}
  • Profile picture of the author wwwBaron
    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
    {{ DiscussionBoard.errors[2252409].message }}
  • Profile picture of the author globalpro
    Maybe I am missing it, but where is the link to the code?

    Thanks,

    John
    {{ DiscussionBoard.errors[2252443].message }}
    • Profile picture of the author Jesus Perez
      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.

      Originally Posted by globalpro View Post

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

      Thanks,

      John
      Signature

      {{ DiscussionBoard.errors[2252570].message }}
      • Profile picture of the author globalpro
        OK,

        Originally Posted by BlueSquares View Post

        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.
        Seemed nice, but if that's the case, I think I will pass.

        Thanks for the clarification.

        John
        {{ DiscussionBoard.errors[2252708].message }}
      • Profile picture of the author tecHead
        Originally Posted by BlueSquares View Post

        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.
        Vita Vee, nice little script but from one programmer to another I'd like to offer up some friendly advice; (if you don't mind).

        You'd probably do a whole lot better by allowing people to download and install the code on their own server(s). The data you're talking about can be classified as Mission Critical and unless there is some type of reassurance; (preferably some type of contractual agreement that binds you by law to not collect data on your end); most people will not want to entrust such a script hosted on a server they don't have control over with their data.

        I ran into a similar problem with a script I wrote which handled Mission Critical data and am now re-scripting to handle the demand of wanting to host the data manipulation portion of the script on their own server(s).

        If you're concerned about your code being stolen; just encrypt it and all should be fine, (as long as you utilize an encryption engine that is pretty much universal across various server environments).

        You'll also want to think about some sort of installation wizard for those that are not tech savvy.

        HTH
        PLP,
        tecHead
        Signature
        Learn Everything You Need to Know About CryptoCurrencies
        Automation is the primary conduit to successful relaxation
        {{ DiscussionBoard.errors[2252896].message }}
  • Profile picture of the author Authentic
    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.
    Signature

    Authentic!

    {{ DiscussionBoard.errors[2252480].message }}
  • Profile picture of the author samstephens
    If you're concerned about your code being stolen; just encrypt it and all should be fine, (as long as you utilize an encryption engine that is pretty much universal across various server environments).

    You'll also want to think about some sort of installation wizard for those that are not tech savvy.
    If you go this route, IonCube offer "Encoder" and "Package Foundry", which is a code encoder and an automatic installer, respectively.

    cheers
    Sam
    Signature
    DLGuard v5 - The Warrior Edition
    Full integration with JVZoo, DigiResults, and WSO Pro for secure WSO's and WSO memberships.

    www.dlguard.com
    Serving the Warrior Forum since 2004
    {{ DiscussionBoard.errors[2254962].message }}
  • Profile picture of the author WillR
    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?
    {{ DiscussionBoard.errors[2255151].message }}
  • Profile picture of the author vitavee
    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.
    {{ DiscussionBoard.errors[2255309].message }}
  • Profile picture of the author vitavee
    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
    {{ DiscussionBoard.errors[2255335].message }}
  • Profile picture of the author AndyBeard
    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.
    {{ DiscussionBoard.errors[2270114].message }}
  • Profile picture of the author vitavee
    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
    {{ DiscussionBoard.errors[2274964].message }}
    • Profile picture of the author tecHead
      Originally Posted by vitavee View Post

      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
      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
      Signature
      Learn Everything You Need to Know About CryptoCurrencies
      Automation is the primary conduit to successful relaxation
      {{ DiscussionBoard.errors[2274987].message }}
  • Profile picture of the author vitavee
    @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
    {{ DiscussionBoard.errors[2275071].message }}
    • Profile picture of the author tecHead
      Originally Posted by vitavee View Post

      @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.
      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.
      Signature
      Learn Everything You Need to Know About CryptoCurrencies
      Automation is the primary conduit to successful relaxation
      {{ DiscussionBoard.errors[2275142].message }}
  • Profile picture of the author AndyBeard
    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.
    {{ DiscussionBoard.errors[2275137].message }}
  • Profile picture of the author AndyBeard
    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.
    {{ DiscussionBoard.errors[2275174].message }}
  • Profile picture of the author vitavee
    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
    {{ DiscussionBoard.errors[2275426].message }}
    • Profile picture of the author Murt@gh
      Originally Posted by vitavee View Post

      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
      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
      {{ DiscussionBoard.errors[4180778].message }}
  • Profile picture of the author ericbryant
    This is AWESOME! Thanks!
    Signature
    www.CoreZero.com
    - Social Media Marketing Strategy & Consulting

    - Custom Wordpress Website Design & Blogs

    - Wordpress Speed Demon? Click Here!

    - Live the life you love... now!
    {{ DiscussionBoard.errors[6002079].message }}
  • Profile picture of the author xxxJamesxxx
    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
    {{ DiscussionBoard.errors[6004644].message }}
  • Great.. But first I need start earning money in CB .. then I will try
    Signature

    Get Quality Backlinks . Free categorized article directory for quality backlinks

    ***Looking for backlinks from .EDU sites. $5 only. Try this***
    {{ DiscussionBoard.errors[6004672].message }}
  • Profile picture of the author cosplayfavor
    It is a just good idea~~ but now our strategy is not aim at this way
    {{ DiscussionBoard.errors[6004692].message }}
    • Profile picture of the author supac
      [DELETED]
      {{ DiscussionBoard.errors[9888841].message }}
  • Profile picture of the author 7thAmigo
    [DELETED]
    {{ DiscussionBoard.errors[9898847].message }}

Trending Topics