Sean’s Obsessions

Sean Walberg’s blog

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

Comments

I’m trying something new here. Talk to me on Twitter with the button above, please.