A simple analytics wrapper