def set_event_transaction_type(action_type):
 get_cache('event_transaction')['type'] = action_type

def set_event_transaction_type ( action_type ) : get_cache ( 'event_transaction' ) [ 'type' ] = action_type
takes a string and stores it in the request cache as the user action type .