Track cookbook lifecycle events in Segment.io