Reddit recently introduced outbound link tracking which grants them the same data necessary to do that, although the intent is more for monetization.
On HN, the idea was floated around but quickly shot down: https://news.ycombinator.com/item?id=12053645