Format and add GA tracking code