How to Install Google Analytics in WordPress in 10 mins
Log in to your WordPress dashboard and navigate to Appearance ยป Theme Editor. Now click the Theme Header (header. php) file on the right-hand side below the Theme Files section. Paste the tracking code you just copied from your Analytics profile before the closing tag.