I want to do simple analytics over which user is doing what on my Django site.

I think the simplest way is to rewrite all URLs so that they contain "?username=foo".

This will only happen on GET urls that don't already have any URL query parameters.

How do I do this? Can I rewrite the URL to include a new query parameter from a view?