On a single-masted boat
you are best to use the vhf aerial with a good quality splitter designed for AIS. The vesper one is recommended for their ais equipment
. Maximum range from maximum height.
GPS is completely different as it needs to see upwards not across. Anywhere on the pushpit is the usual place.