Adding Site to Google Analytics and tracking code to Blog

Google Analytics is a service offered by Google that generates detailed statistics about a website’s traffic and traffic sources and measures conversions and sales. Google Analytics can track visitors from all referrers, including search engines and social networks, direct visits and referring sites. It also displays advertising, pay-per-click networks, email marketing and digital collateral such as links within PDF documents. Read info source.

Anyhow, I have already created an accounts in Google Analytics with some of sites listed which was connected to my existing Google account. For some reason, I mistakenly created a different account which later on found out that it already existed in my other Google account. It’s advisable to have one account to avoid confusion. However, I found a way to correct that mistake. I have created a new blog as replacement for the old blog domain which soon to be closed and deleted. What I did is I edited or change the site name and url with the new domain URL.

Go to your Google Analytics account. You can create a new site or change the existed account just like i did. Click the icon or the blue square to go to the site then click ADMIN. You will then see the page with your account, propert and view profile (image above). Click each one of it and start editing and adding new website url.


edit profile
Once done all the above changes, you can now get the tracking code to be added to your site html. Below are the steps you need to follow to get the tracking code and added to your site. Google Analytics tracking code can be added to your site either manually or with a plugin. Note: You loose your Google Analytics tracking once you change themes or template.

Adding Google Analytics manually

1. Login wordpress admin panel
2. Goto Appearance > Editor (theme editor)
3. Select the footer.php or index.php
4. Find the </body> html tag (click ctrl F to find the </body> tag.
6. Don’t forget to click Update File to save changes.


Where do I find my UI tracking code ?

1. Log in to Google Analytics at http://www.google.com/analytics
2. From the Overview page, select the account that has the profile for the tracking code you’re looking for, as the code is profile-specific.
3. Select the profile from the accounts Overview page.
4. From that profile’s Actions column, click Edit
5. At the top right of the ‘Main Website Profile Information’ box, click Check Status
6. Your tracking code can be copied and pasted from the text box in the Instructions for adding tracking section

Comments are closed.