Staying on track during period

Does anyone else have any trouble staying on track during their period because of cravings?? Any tips to combat this? My period is coming in a few days and I’m worried I’ll get off track because I always gain weight during my period and it’s so discouraging!