Added hooks to record preview usage data