Add extension point before outputting file

Example use case: view tracking