When wiring an anlogue switch to grounded button, which goes to Y and Z?
All '4066 switches are bidirectional and bipolar, provided the voltage specs are not violated. They may be connected either way around.