Only add cookies with paths for easy deletion.
Pull out stubAnalyticsService as common module.