Hi,
I did a quick search and found this...
"When cleaning capert stains consisting of pancake syrup, make up a solution of one teaspoon of dishwashing liquid to one teaspoon of warm water. Pour this into a spray bottle and blot to remove carpet stains. Blot again with clean water to remove any sticky, soapy residue from the carpet."
I haven't done this personally so I don't know if it works or not. Good Luck! I hope it does