Write orders to file with cookie information

Google Analytics doesn't seem to be very accurate for recording
conversions using custom events, so I'm recording them in a text
file