Made cookie functions public for ahoy_events