How to Plug Google Analytics Into Your Site
Google Analytics is a free service to track your website’s visitors, but you have to get into your site’s back end so the service can collect the data you’re asking for. Here's how.
May 14, 2014
If you have a site that is using Blogger, WordPress, or Squarespace to serve up your content, you shouldn’t have to touch the underlying code to connect with Google Analytics.
Ready for More Tech Tips?
New School Tech, Old School Technique
Supercharge Your Networking With LinkedIn
Focus Your Door-Knocking With Big Data
Sell Your Community With Enhanced Info
What to Expect From a CRM Solution
Tracking With Google Analytics
Advice From Your Peers
10 Facebook Dos and Don’ts
- Go to google.com/analytics and either sign in or create a new account.
- Name your Web tracking account, enter your URL information, and let Google know if you want to share information with it (if you don’t, you’ll miss out on some page-ranking data), agree to the service terms, and click the “Create Account” button.
- Click on the “Tracking Code” tab.
- Tell Google how you want to group your data.
- If you have a simple domain, stick with the default.
- If you have subdomains (say, you want to track both store.yourdomain.com and www.yourdomain.com), choose the second option.
- Choose the third option if you want to roll the analytics of two separate domains into one reporting suite (yourdomain.com and stevesdomain.com).
- If you have an AdWords account, link it by checking the related box.
- Copy the code that Google Analytics provides at the bottom of the page.
- Open your site’s CSS code and add Google’s code into your site’s templates. Paste it in before the closing </body> tag.