How to write automation for post-pan

Hello! I have a question: how I can write automation for post-panning? I can write automation for pre-fx panning, but I can’t find method for write post-fx pan knob. Thanks!

Insert a gainer device and automate the panning slider.

Thanks!