WordPress + Google Analytics: How to Setup Google Analytics Correctly on Your WordPress Website

If you have a website, you should be using Google Analytics. This is not an optional tool; this is a necessary tool to have on your website.

Not only for e-commerce but websites in general need to use google analytics to gather information and data on the individuals that are visiting their website.

Google Analytics provides a host of needed information. Some of the Data it provides is below:

  • Provides you with information on how your site visitors found you. For example Organically. Direct, Social Media, Google or Referral
  • You can see what visors do when they visit your website. For example how long do they stay on your website, the pages they are exiting your website
  • You can Track conversions and see the behavior flow of the visitors on your store.
  • And much more…

Step 1: Sign Up For Google Analytics

Go to Google Analytics

Click Sign up

Step 2: Get Tracking ID

Choose Website. Fill in the required information.

Step #3: Copy Tracking Code & Paste Inside WordPress Theme

Copy your tracking code.

Open your WordPress Dashboard.

On the left side of your WordPress Dashboard hover your mouse over Appearance,then click Theme Editor.

Once inside of Theme Editor, On the right side of your dashboard look under Theme Files and locate header.php . (* If you do not see it then it may be under your Parent Theme, simply go to the Top of Theme Files and you will see ” This child them inherits templates from a parent theme, Genesis, click Genesis)

Once you locate (header.php) click it.

Once inside of the (header.php) file, in the middle of the screen you will see the code. Go down until you see the head>

Once you locate, place your mouse to the right side of the > and hit the enter key. This will move you to the next row. Right-click in the empty row and paste the Google Analytics code.

You are now all set! You have just added Google Analytics to your WordPress Website.

No items found.

Stay updated with our
latest news & offers

Sign up to get our Newsletter.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.