Reduce code duplication.
Add GA tracking.