If done correctly, tracking user activity can be a powerful software quality tool. It can give us invaluable insights on what promotions and products are more popular in relation to others, what the preferences of the user are, and what features turn out to be more or less successful and performant.
I am currently a part of building one of the biggest e-commerce websites in Germany. Each team is responsible for collecting all the tracking data for the features they develop. My team’s approach to tracking has gone through multiple iterations and learnings that I would like to share, including answers we found to challenges like how to tackle code complexity in the frontend layer, where to store the tracking data, how to integration test the data collection, or how to find a common language between business analysts and software designers.