How to Install Google Analytics to Your Website
Installing Google Analytics on your website takes only a minute and is painless. Soon, you’ll be tracking social media metrics in your sleep, thanks to Google Analytics.
First, grab your Google Analytics ID and write it somewhere. It’s easy to find. Just log into Google Analytics and from your dashboard and click the gears icon. You should see your ID next to your URL on the page that comes up. It’s the number that starts with UA-.
If you don’t have a blog like WordPress, Joomla, or Drupal, but want Google Analytics on your website, you can make that happen with a simple cut and paste. Just follow these steps:
Open the HTML source code file for your website footer.
Separately, head over to your Google Analytics dashboard.
It looks like this:
Did you navigate away from the window that showed the code you need to copy over at Google Analytics? Don’t worry! You can get back to it. Log in to your Google Analytics dashboard. In the list of websites, find the one that you’re installing Analytics on and click the word Edit in blue to the right of that row. In the window that opens, click the words Check Status in the upper right. That brings the Paste This Code window back up for you.
In your text editor, paste the code you copied in Step 3 into your HTML, just before the </body> tag.
Save and upload the new HTML file.
After you save and upload the file and check for tracking, Google Analytics begins gathering data for you to put to work.
After you install Google Analytics your analytics data will appear in your dashboard in about 48 hours. After you see data, the fun begins! You can check immediately to see whether the code is working, however, by logging back into your Analytics account and looking for the OK symbol to appear in the tracking area — upper right. If it isn’t working, you see an exclamation point inside a yellow triangle and should try again.