The way to stop ice dams from forming is to keep the entire roof cold. In most homes this means blocking all air leaks leading to the attic from the living space below, increasing the thickness of insulation on the attic floor, and installing a continuous soffit and ridge vent system. Be sure that the air and insulation barrier you create is continuous.
TIPS:
1. Close up air leaks caused by gaps in drywall and cracks around light fixtures. This improves attic insulation by stopping heat from entering the attic through the ceiling.
2. Unplug/replace blocked soffit vents. This improves attic ventilation by allowing any warm air to quickly escape outside.
3. Clean gutters and downspouts so melted snow can drain easily.
4. Remove snow before it melts with a roof rake or similar tool. (This will only be effective if you rake all the way to the roof, removing all potential snowmelt)