How To Setup Google Analytics on WordPress


How To Setup Google Analytics on WordPress


Google Analytics is a web analytics service offered by Google that tracks and reports website traffic, currently as a platform inside the Google Marketing Platform brand. … Google Analytics provides an SDK that allows gathering usage data from iOS and Android app, known as Google Analytics for Mobile Apps.Learn How To Setup Google Analytics on WordPress

If you are unsure about Google Analytics ,you can always check are Top 11 Google Analytics Plugins for WordPress

 Set up your Google Analytics account

Head over to Google Analytics, and sign up for a new account. Enter your website details and add it to your account.

Google Analytics add new account

Get your Google Analytics tracking code

Log into your Google Analytics account and click on Admin on the sidebar.

Google Analytics dashboard

Select the website that you want to get the tracking code for by selecting the right Account and Property from the drop-down.

In the Property column, click Tracking Info followed by Tracking Code.

Google Analytics select properties

On the next screen, you should be able to see the script that you need to add to your WordPress site. Simply click on it to select the script and copy it.

Google Analytics tracking code

Add Google Analytics tracking code to header.php file

Log into your WordPress Admin dashboard and go to Appearance > Editor. Click on header.php file on the right sidebar.

Note: Make sure you’re editing your child theme so you don’t lose your tracking code when you updated your theme.


WordPress edit theme header

Paste the code that you copied right before the tag.

WordPress edit theme header

Click Update and you’ done!

If you have finished your Google Analytics setup , we recommend you indexing your website to Google.

Also we highly recommend on doing SEO on every page and Post for High Ranking Results


Leave a Reply

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