Connecting multple sensors to motorshield

Hi,
I'm currently working on a project which requires me to connect an Ultrasonic sensor and a magnetometer. So Ive got an Adafruit Motorshield but both ultrasonic and the magnetometer require the pins A4 and A5. How exactly do I connect them. Do all analog pins have the same functionalities. Is there a significant reason for using A4 and A5?
Thank you

lucario_sorcerer:
Is there a significant reason for using A4 and A5?

If they're I2C devices yes, but are they?

If they are both I2C, then there's no problem as long as they both have different I2C addresses, but you'll need to use a breadboard or similar to double up the wiring on those pins.

Also, on an Uno at least, not sure of others, there are duplicate I2C A4/A5 pins next to Aref by the reset button, but I wouldn't know if your shield exposes those or not.

edit: see photo here.