title: nginx/redis and handling tracking params in url
body: <p>I am using nginx and redis in my website. For several items on my site, I want to add tracking params to their urls so that when a user clicks on an item, I can collect statistics of user usage apart from serving the content user requested. I am looking for methods on how to capture this statistics in redis from nginx, i.e. without hitting the background application.</p>
  
  <p>For eg., suppose I have several rows of tables on my page and each table hold items in row/column format. So, for an item in {table: 2, row: 1, column: 3} if the actual url is: www.mysite.com/news/dodi, then I want to embed the url: www.mysite.com/news/dodi/day=29?table=2&amp;row=1&amp;column=3. When the user clicks on it, nginx will hit redis to fetch the content and also update the appropriate statistics (here can be increment day-29, table-2, ...).</p>
  
  <p>Any suggestion on how I achieve this without hitting the background app?</p>