added event tracking js snippet