How to Add Google Analytics to WordPress & Go Daddy

Google Analytics is a powerful and free Web traffic analysis tool. It enables you to track your visitors' behavior as they navigate around your site, and to use this data to optimize your site for traffic or sales. Google Analytics is completely compatible with both WordPress and GoDaddy's Website Builder. If you have set up websites with these services, all you have to do is paste your Analytics Tracking code into your site.

Young businesswoman eating lunch at desk
You just need to paste your tracking code into your sites to start collecting data.
credit: Siri Stafford/Digital Vision/Getty Images

On GoDaddy

Step

Log in to your GoDaddy account and click the “Launch” link next to your preferred website builder.

Step

Click “Edit,” “Manage Site” and then click “Site Settings.”

Step

Select the “Sitewide Settings” tab and then start a new line in the text box at the top of the screen. Copy and paste your Google Analytics tracking code into this line. (To get this code, log in to Google Analytics, click "Admin" and then the URL of the site you want to track. Click the "Tracking Info" tab and then copy the code that displays.)

Step

Click “Save” and then “Publish.”

On WordPress

Step

Log in to your WordPress administration dashboard. If you use multiple accounts, you'll need to use your admin account to complete this process.

Step

Click “Appearance” and then click “Editor.”

Step

Click “header.php” from the list of files to the right of the screen. The code for this file will now appear in the main editing area.

Step

Scroll through the file until you locate the “” tag. Start a new line directly above this tag and then copy and paste your Google Analytics tracking code into it.