Make sure to stir continuously while cooking so that the sugar dissolves completely and there are no lumps in the syrup.
Don't boil the syrup; just let it simmer until all the ingredients are combined.
Use low heat to prevent burning.
If you want a thicker syrup, let it simmer for an extra few minutes.
For an even creamier syrup, try adding a tablespoon of heavy cream or half-and-half at the end. This will give it a beautiful glossy look and add an extra rich flavor.