Fixed an issue where stats weren't being tracked by analytics.

Fixes #1353