Compass is the same but nor sure about the connectors.
Check:
DJI Phantom 4 Camera Drone Part 26 Landing Gear Landing Skids Compass, No Screws | eBay
Amazon.com: DJI Phantom 4 RC Camera Drone Part 26 Landing Gear Landing Skids Compass: Camera & Photo