Daily CJ stats via email?

Discussion in 'Commission Junction' started by Kerosene, Oct 23, 2007.

  1. #1
    Does anyone know if it's possible to have my daily CJ stats emailed to me every day?
     
    Kerosene, Oct 23, 2007 IP
  2. hanji

    hanji Peon

    Messages:
    612
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not sure if this can be done with CJ's interface.. but definitely possible with cURL/PHP to scrape the Quick Stats after login.. then email the results.

    Just a thought.

    hanji
     
    hanji, Oct 23, 2007 IP
  3. hanji

    hanji Peon

    Messages:
    612
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Apparently I'm bored. I put together something quick and dirty to do this. I'm sure it will be revealed that there is something already in CJ's control panel that does this.. but I have not seen this. In the meantime.. here is a cURL script that fetches the quick stat section of the home page. To get this to happen once a day, you'll need to execute this script in cron.daily or via crontab.

    CJ Quick Stat Email Script

    Hope this helps
    hanji
     
    hanji, Oct 23, 2007 IP
  4. tvmatt

    tvmatt Peon

    Messages:
    1,076
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #4
    CJ's Quick Status are generally not up-to-date and don't give you much accurate information, as it resets once a day (or whenever you have it set to reset). Your best bet would be to use CJ Web Services (http://webservices.cj.com). Here's some more info on the specific information you can download from Web Services - http://help.cj.com/en/web_services/Example_Queries.htm .
     
    tvmatt, Oct 23, 2007 IP
  5. hanji

    hanji Peon

    Messages:
    612
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Very nice!

    http://help.cj.com/en/web_services/Example_Queries_Item_Based_Details.htm

    hanji
     
    hanji, Oct 23, 2007 IP
  6. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #6
    Thanks guys. This is something I've wanted to do for a while. I'm sure I'll be able to figure something out using the info you've both posted.

    @ hanji - I'm on holiday at the moment, so I'll check out your script in more detail when I get home and have proper access to my sites. Pity I didn't set this up before I left home! I'm stuck using public computers and my PDA (which is a real pain to check CJ stats on).
     
    Kerosene, Oct 23, 2007 IP