In this work, we investigate the field equations of modified Gauss–Bonnet gravity, namely $f(R,G)$ gravity, within the framework of a flat Friedmann–Robertson–Walker (FRW) spacetime. By adopting a dynamical systems approach, we analyze cosmological evolution and determine the corresponding fixed points for a specific functional form of the model, $f(R,G)=f_{0} R^{\alpha }G^{\beta }$ , which couples the Ricci scalar and the Gauss–Bonnet invariant. Using fixed points, we have constructed the $H(z)$ model. Also, with the help of Bayesian statistics, specifically the Markov Chain Monte Carlo (MCMC) mechanism was employed to constrain the parameters of the proposed model using observational datasets such as Hubble, Pantheon, DESI BAO and RSD datasets.