How to Install Google Analytics WordPress
Understanding how your audience browses your website is crucial to your success and no doubt Google Analytics sets the standard when it comes to gathering information regarding your site’s visitors.
Google Analytics can track visitors from all referrers, including search engines and social networks, direct visits and referring sites. It also tracks display advertising, pay-per-click networks, email marketing and digital collateral such as links within PDF documents.
Google Analytics shows precise data about where the users landed on your site, what they read, how long they stayed, what they were searching, the browser they were using, where they live, their age and even their interests. Google Analytics provides a wealth of valuable insight, but many business owners fail to take advantage of it, even though it’s free.
WordPress is a very flexible content-publishing software, and provides a variety of ways to add Google Analytics to your website. These techniques range from adding the GA tracking code directly by using a plugin or by editing a header.php of your WordPress theme’s files.
We assume that you already have Google analytics code with you. In case if you don’t just visit http://www.google.com/analytics/ grab your code and save it on your desktop. Next go to your WordPress Admin and then Appearance > Editor. Open your theme’s header.php file and directory underneath the < body > tag, paste the tracking code. Click “Update File.”
Next, Verify if you have pasted the code properly. Open your Google Analytics account. Click on “Admin” at the top of the page and under “Property” choose your site and then click “Tracking Info.”
If the Tracking Status is “Receiving Data,” then you’ve successfully added Google Analytics Code to your site. Before you edit your header file, make sure you have its backup. In case if you’re not sure what you’re doing or do not want to touch your template’s files, then you can use a plugin, which is a lot simpler and don’t need any kind of editing.
Using a plugin is the most convenient and simple way to add Google Analytics code . There are many available and they all essentially do the same thing.
Google Analytics by Yoast: The Google Analytics by Yoast plugin for WordPress allows you to track your blog easily and always stays up to date with the newest features in Google Analytics. Simple installation through integration with Google Analytics API: authenticate, select the site you want to track, and you’re done.
- Simple installation
- Option to enable demographics and interest reports
- Outbound link & downloads tracking
- Track just downloads as page-views
- Track internal links
- Tracking of your search result pages and 404 pages
- Full debug mode, and much more
- Supports Universal (analytics.js) and traditional analytics (ga.js)
- Supports download link tracking
- Supports event tracking with outbound links / downloads
- Support site speed tracking
- Supports any advanced tracking code Google provides
- Disable any feature if needed
- Ability to hide Google UID dropdown