analytics update to track button clicks