How to Set up Google Analytics for your WordPress Site

How to Set up Google Analytics for your WordPress Site

For related products, scroll down to the end. ↓↓↓

 

We will show you how to set up Google Analytics for your WordPress site, using the Theme Editor on your WordPress dashboard. First, you need to either look up “Google Analytics” in a search engine, such as Google or Bing, or just click this link https://analytics.google.com/. Then you will be prompted to use one of your Google accounts, if you already have one, or you can quickly set up a Google account:

How to Set up Google Analytics for your WordPress Site

Then you will be directed to the sign-up page:

How to Set up Google Analytics for your WordPress Site

Once you click “Sign up”, you will be directed to another page to enter information about your site:

How to Set up Google Analytics for your WordPress Site

At the bottom of the same page, click the “Get Tracking ID” button:

How to Set up Google Analytics for your WordPress Site

After you have agreed to the Google Analytics Terms of Service Agreement, you will be signed up to your Google Analytics account and will be directed to the page with the tracking code for your site. You will need to copy the entire tracking code inside the box:

How to Set up Google Analytics for your WordPress Site

On your WordPress site dashboard, go to Appearance, then click Theme Editor:

How to Set up Google Analytics for your WordPress Site

Then click on Theme Header to access the PHP header file:

How to Set up Google Analytics for your WordPress Site

Once you get to the PHP header file, locate “<head>” and “</head>”, and paste your Google Analytics code anywhere in between. Then click the Update File button:

How to Set up Google Analytics for your WordPress Site

You may need to wait for couple minutes; then go back to your Google Analytics account to check if you see any data from your site.

———————————————————————————————————————————————————————-