Sean’s Obsessions


  • I'm a happy Linode customer. This is a Linode 540 VPS. Linode periodically increases RAM and disk while keeping costs steady, which makes them the natural choice.
  • Archives

23 Feb

Automatic uploading of subid stats for Tracking 202

Tracking202 is a great piece of web tracking software. The thing that annoys me though is that I have to upload subid stats (“Optional Info”) to load in the conversions, unless I use the postback or tracking pixel method (which I don’t always have the option to do, and I’m not a high volume guy anyway).

I wrote a quick script that uses the DT web services and updates the stats automagically. It Works For Me (TM).

Download

Usage:

  1. Put it in some directory, preferably outside your web root.
  2. Edit the script to point to your 202-config.php file, and the DT info for the companies you wish to use
  3. Call it from cron periodically (php /path/to/updatestats.php). It asks for the last 7 days of stats by default, but you can safely run this script more frequently because it will not double-count conversions.

You can also run this with the “all” paramater, ie “php updatestats.php all” and it will download and update the last 10 years of stats

One Response to “Automatic uploading of subid stats for Tracking 202”

  1. 1
    Daniel Platt Says:

    Thanks for this.

    It gave us enough information to implement a different report.

Leave a Reply

© 2010 Sean’s Obsessions | Entries (RSS) and Comments (RSS)

Powered by Wordpress, design by Web4Sudoku, based on Pinkline byGPS Gazette