fix script embedding. also create GA template