AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

4.7K members online now
4.7K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

GA code to Wordpress site?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭



I have installed GA code for several of my sites:


All are under different GA codes.


However I suspect that I have made a wrong installation and the data which I receive is not correct. please advise how can I improve this.

Where actually should I put the GA code - on each post I would like to track or only in the main Wordpress page?


Also sites and are old ones but have good amount of links and I do not want to miss them. What is needed to be done in order to have the traffic for this site to be re-directed as follow: => =>


Without having my website punished


Best regards



1 Expert replyverified_user

Re: GA code to Wordpress site?

Top Contributor
# 2
Top Contributor
Hi Georgi,

You can add Google Analytics to your WP site using a plugin like

In order to redirect your old sites to the new ones you need to set up a 301 redirect in the htaccess file on the old sites.

Let me know if you have questions.

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital