move ga code to header