extract ga code and setup