The anomalous Hall effect (AHE) has been a remarkable tool for characterizing the magnetic properties of thin films with perpendicular magnetic anisotropy. In this study, we investigate the temperature-dependent AHE in sandwich structures composed of two ferrimagnetic (FIM) layers with different coercivities, using rare-earth-transition-metal (RE-TM) materials. Complex triple AHE loops are obtained near the compensation temperature of GdFeCo, and these loops are explained by considering the magnetization reversal of the individual layers, Hall sign reversal, and the spin-flop transition in the GdFeCo layer. A model is developed to provide a simplified explanation of the origin of these complex AHE loops. This study elucidates the mechanism behind the unusual temperature-dependent AHE response of the technologically important RE-TM FIM films for spintronics applications.