move actionTracking code into userAction namespace