Google Analytics Implementation Guide on the WordPress site

Get the script from the Google Analytics site account:
Sign into account
Go to account settings under “Administrator”
Click “Tracking Details” (middle column)
Click “Tracking Code”

Copying the code shown there looks like this:




  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),



  ga(‘create’, ‘UA-12345678-1’, ‘’);

  ga(‘send’, ‘pageview’);


Embedding the code on your WordPress site:

Enter the management system:
Go to “Design”> “Editor”
All editable site files will be displayed on the left.
Find and click the “header.php” file in the list
Paste the code, before the / head extension.
Click “Update File”

This is the code installed!

To check that it is displaying properly, go to the site, click on “View Page Source” and look for the code you pasted.

Share This Post

Leave a Reply

Your email address will not be published. Required fields are marked *

More To Explore

Professional Tools

The 100 most popular WordPress plugins

Building a WordPress site? Excellent! It’s time to get acquainted with the extensions (plugins that are blasphemous ..), most commonly used for WordPress sites… because

Do You Want To Boost Your Business?

drop us a line and keep in touch


Let's have a chat