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.

Leave a Reply

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

Share This Post

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Free Tools

JS & CSS Minifier Tool

Make your website smaller and faster by minifying the JS & CSS code! This tool allows you to minify your JS & CSS code quickly

Professional Tools

Is your content original?

Articles that you purchase may have been copied or stolen from other sites. Publishing them on your site can damage your reputation and ruin your

Do You Want To Boost Your Business?

drop us a line and keep in touch


Let's have a chat