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.

How Can We Help You?

We want to build your next project.

Connect with Pixel Jar

Does Your Website Need a Tune Up?

Run a Multi-Point Inspection on your website now!

  • Check speed rankings
  • Test security vulnerabilities
  • Find site optimizations

Our Community

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

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


We are proud partners at WPEngine hosting.

Learn More


We are proud partners at Sucuri website security.

Learn More
4.8 of 5 Stars

Clutch Reviews

Our reputation is everything. We currently hold a 4.8 star review at Clutch.

Learn More
5 of 5 Stars

Google Reviews

Read client reviews of our work on Google where we have a 5 of 5 star record.

Learn More