Region Automation: Aftertouch
Set the Region Automation parameter to Aftertouch.
The Automation/MIDI area in the Piano Roll Editor in Logic Pro — Apple Support
Choose the desired automation or MIDI controller parameter from the Automation/MIDI pop-up menu.