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.

advertising and the gdpr

Advertising and the GDPR

We’ve written about the GDPR in the past. As a quick recap, the GDPR is a new regulation going into effect in May of 2018. The regulation protects the personal data of citizens of the European Union. The new law has extraterritoriality so it’s going to be enforceable around the world. The exact legal implication…
Read More
clutch logo and text pixel jar ranks on clutch

Pixel Jar Ranks on Clutch’s California Press Release

Pixel Jar makes web platforms and solutions that make our clients look amazing. Take a look at our projects and you’ll see the care we put into them. Just to be certain we’re delivering the solutions our customers are looking for, we look to Clutch to collect unbiased client reviews for us. Clutch is an…
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.