How to log user activities using the Beacon Web API?