How To Get Google Analytics Code

Understanding how users find and use your site is key to making your site a useful marketing tool. Google Analytics to the rescue! If you currently manage a website, chances are you’ve heard of Google Analytics. Analytics tracks user information on websites, such as page views, referrers, demographics and more. So, how do you get Google Analytics code on your site?

Set Up An Account

If you already have a Google Analytics account, skip to the next section. If not, setting up an account is easy. Like everything with Google, if you already have an account for Gmail, YouTube Chrome, Google+, etc. you’ll be able to log in and start your Analytics account. If you’ve made it this far in life without having signed up for a Google Something, pat yourself on the back…and then start an account here. Once you establish your account, log in, and let’s get to tracking your site.

How to Get Google Analytics Code

Two things to note before we get the Google Analytics code. First, you may link multiple accounts to your Google Analytics account. Consequently you may grant others access to your account. So you may see several accounts on your Analytics screen. Second, in Google Analytics, websites are called “properties.” If this is a new account for you, you’ll want to create a New Property for your website.

Once your property exists you’ll want to drill down through the admin to get the tracking code. From the Admin screen (click the cog icon in the lower left of the Analytics screen) follow this path: Account > Property > Tracking Info > Tracking Code. On the Tracking Code page there are two data points of interest. First is your Tracking ID – this is the unique identifier Google uses to track your site. Second is your Global Site Tag – this is the code you’ll want present on every page you want Google to track.

Putting the Code on Your Site

For any site, you can always paste the Global Site Tag code manually into your source. Copy the code snippet from your Tracking Code page and paste it right after the tag.

If you are running a WordPress site, there are a number of plugins that can help you with this process. The most prominent is MonsterInstights. Once you’ve installed MonsterInsights on your website, you can run through the wizard to connect your site to your Analytics account. It’s a simple process that is handled right through the plugin’s admin screens.

After the code is in place Google will be tracking your site. Stats do take a little bit of time to aggregate on your Analytics admin, so don’t expect to see new stats on your page immediately in real time.

Written by the Team at Pixel Jar

We hope you got something useful out of that post. If you'd like to read more we have an active blog with topics across the spectrum of website development. If you're researching information for a project we'd love to talk to you about it.

What Is Event Tracking, and Why Should I Care?

Good websites are not just static “online brochures”—they’re meant to be interactive. You want your website visitors to scroll through the page, click on links, download helpful content, play videos, fill out your form, etc. In the world of website analytics, each of these actions is called an “event”. Event tracking is how you can…
Read More

Gravatars – Be Somebody!

Gravatar stands for globally recognized avatar. It’s a service that allows a user to create an image that serves as an identifier for them all over the internet. Many sites use the Gravatar service to identify users, and Gravatar boasts 8.6 billion images served each day. In order for the Gravatar to display, the website…
Read More

How Can We Help You?

We want to build your next project.

Connect with Pixel Jar

Our Community

Subscribe to learn more about the goings on at Pixel Jar.
  • Note: Your email will be added to our CRM and be used to receive emails from Pixel Jar. You can unsubscribe at any time.

  • This field is for validation purposes and should be left unchanged.