I found a workaround. For those that wish to include the code directly.
1) Create static block with raw js, insert the google analytics tracking code
2) Go to header builder > html blocks > insert the static block
3) Drag it to the top header section using the header builder
It works.