added analytics code for Hearst systems to the three templates