I think it could work... there's a stats program called AXS you can download that does most of that anyway, but creates its own logfile, rather than using the server log - with a little more thought, since this particular script grabs a shitload of info anyway (if available), you could probably just have a standard setup of the script, put the include (or use an img src) on each page you send traffic to, as well as the success page. It'll log each page the surfer hits, as well as the referring url (or domain, or ip, your choice), so you can run a query (the function's already built into it) on the logfile for all the IPs that hit the success page, then go back and run those for their referrers.
No mods necessary, it seems... I don't know if it's okay to link you to the script here. LMK and I'll post the link if you want.
I'm sure it would work with any stats program of similar construction; I mention AXS cuz I've used it repeatedly (it even has a decent setup for tracking exits) and been able to shape it to my needs.
Good luck!
M
__________________
Does not play well with others...
|