First time here? Check out the FAQ!

How do I track a users original source?

I'm a marketing guy and I love knowing where every user came from. Not just that, I love knowing where my best / most profitable users came from.

Each time a user comes to the website, I need to record in a separate DB table:

  1. Where the user came from (referral source or direct, Google's URL parameters ?utm_source= & utm_campaign= etc)
  2. What campaign drove a customer through to the website

I can then develop my own analytics and reporting to determine which campaigns: PPC, SEO, Social Media, GDN, banner etc... brought in the best users (based on their engagement with the site, i.e. their reputation in the system).

I can then identify the best marketing campaigns and the lowest performing campaigns and act accordingly to maximize marketing spend for promoting the Q&A forum.

I'm learning python now (I'm a PHP programmer) but I'm afraid there's allot I don't know; IDEs, Django, Git-hub etc and I won't be able to get the work I need done.

Is there anyone else that would like to encourage marketing functionality in AskBot or work with me on developing marketing, analytics tracking tools for AskBot? Marketing is a core area that's simply ignored and as a result most Q&As don't get critical mass and become stagnant and fail.

CamBurns's avatar
asked 2012-03-31 06:27:49 -0500, updated 2012-03-31 06:29:06 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments

1 Answer


This might be a good place to start, but I've not used it.

powlo's avatar
answered 2012-03-31 11:08:49 -0500
edit flag offensive 0 remove flag delete link


Thanks, I had a look and it may be a good starting point. I've got a long way to go before I can develop the code myself and understand git. Is there someone in the community that would be interested to develop the code with me?

CamBurns's avatar CamBurns (2012-03-31 23:21:53 -0500) edit
add a comment see more comments