Hi Dene
Scrape up and/or blot. For large spillages use first a cotton towel/nappy and absorb as much as possible. DONT rub or scrub. Then make a pad of white kitchen towel from at least 3 sheets. Fold into pad place on spillage and absorb. With paper towels (>110% absorbent) you will see if it's still working, with cotton >100% absorbent) you can't. Keep doing this 'till last paper towel stays dry.
To neutralise
Mix a solution of distilled (aka white) vinegar and cool to warm water. About 1 teaspoon per cup of water. Wet out pile only of affected area. Let stand for 10 minutes then absorb dry.
Unlikely to have an odour problem after this, but if so, I would use Dettox (NOT Dettol) It states not for use on carpets/fabrics but this may be to protect manufacturers.
All products to be tested first for safety/suitability on everything that will be treated.
The first product used on the carpet must be the neutraliser, otherwise there is the possibility of creating an orange/yellow permanent stain.
Safe and happy cleaning

Ken