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.

building an ecommerce website

Building an Ecommerce Website – First Steps

You’re just getting started on a new ecommerce website. You probably have a million questions. Most of them are likely related to the technology that’s going to power the website because that’s the area where you have the most questions and concerns. We often hear, “which shopping cart is the best?” A better question is,…
Read More
measuring the success of your digital strategy

Measuring the Success of Your Digital Strategy

Having a proper digital strategy at hand is a crucial requirement for businesses that want their websites, digital advertisements, and social campaigns to be successful. A clear plan of action helps websites attract more visitors, which translates to more customers and business in the long run. At the start of 2019, we shared some recommended…
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.