Should I add the tracking code to the head or the body of my page? Custom JavaScript Functions - If you have other custom JavaScript code on your site, your code could possibly interfere with the Google Analytics tracking code. In these cases, we suggest moving the Google Analytics tracking code to the <head> portion of your website, after any meta tags and title tags. with analyticscodegoogletracking