add write.csv to GA analysis