Web Referral Tracking For Morons
April 10, 2009 10:05 AM
Subscribe
Coding advice needed on how to create some basic user/referral tracking functionality on a website.
Please go easy on me as I'm not a developer, but I need to evaluate a request from my boss that came in urgently without consulting me. Answers understandable from a kindergarten level perspective will be appreciated.
I have a site running on Drupal. MySQL backend. Bunch of PHP handling communication between the two. My boss signed a revenue sharing deal wherein I need to track all users coming from the partner site for six months. If any of them buy anything either on first click through to our site or on any subsequent click through within six months, we give the partner precentage of the revenue. I need to be able to do this extremely quick and cheap...even if it's dirty. What's the best way to do this so that I can report on it out of the database or at least see all transactions for these users in a GUI?
Here's what I know he agreed to:
1. Banner on their site
2. Banner sends user directly into a Flash tool housed in a Drupal generated page
3. User registers AFTER performing functions in Flash..or..they go away and don't register..I still need to be able to track them if they come back and register later
4. After registration, user buys what they've made in Flash Tool
5. Every day I look at orders or some new GUI that shows me users who came from partner and how much they bought.
posted by spicynuts to computers & internet (5 comments total)
You'll need to turn on the access logs, then pull up all the records that hit your 'You Just Made A Purchase!' page. Those records will have the uid of all the users that made purchases. Now, search through your accesslog records for every one of those uids, and see which of them also hit the 'You Just Came From Our Partner' page (you'll want to make two pages with your flash tool; one copy that's generally available for customers that come to your site, and one that isn't linked from anywhere else. The isolated one is the copy that your referral partner will point customers towards).
The users don't need to register for you to do this. There are two problems I see: tracking users who don't register, leave, and come back (you'll need some cookie magic to make that happen) and associating a uid with a purchase. Your database may already have that information, but you might need to set up an extra table for it.
posted by tylermoody at 10:30 AM on April 10