added event tracking for sharing