Added analytics event for code button.