I noticed in Google Analytics I listed "www" but not in my name registrar or Host gator. Also inside Wordpress under settings i did not list www. Is is ok to just go into Google Analytics and under "property" remove the www? That would make it consistent with the site. I am getting an error saying the tracking code is not properly placed.

A WA member (not site owners) posted a video on this but it is listed as private and could not access.

Join the Discussion
Write something…
Recent messages
BrianHiker Premium
I killed my website on GA because on GA it had www but the domain name and hosting account (Host Gator) had it listed without www. I waited one day then recreated the account but consistent with the usage which is without the www. I then installed the ID via Joast and GA states that is now operational.

The history starts from today but I could not trust the history prior because it was far less than the server logs at HostGator said it was. Thus i prefer to have it consistent. If you do have www on your name server and your host then I would put www in GA.

I also did the same with G webmaster tools to make it consistent. All seems to be fine now.
Reply
Marith Premium
I listed my site in analytics two times, one with www and one with http , my tracking works, but don't know if this has anything to do with it.
Make sure you have your tracking code in the header so you don't have to add it to every post. There is a plug-in , I thing it's called header and footer, where you can add whatever you need to your header or footer. Hope this help
Reply
BrianHiker Premium
Thanks Marith, the classroom says to use All in One SEO as it has a field where you just add the tracking code. I like that but prefer to keep the Yoast SEO plugin. I was hoping to switch for a day to make the insertion but was wondering if going back to Yoast destroys the insertion.

I know inside GA it has a spot to insert the website and I could delete the www there to make it "consistent" but don't want to wreck the site.
Reply
Marith Premium
If you use all in one just to insert the code, and then go back to yoast, it will destroy the insertion, I use the plug in I mentioned, and it works well. Can be used for more stuff too
Reply
BrianHiker Premium
Besides the code insertion there was the issue of "www" or no "www". Turns out you are actually pointing to a subdomain when you use www. Thus my site needs to be in that folder and mine is not but one layer up in the root folder for the site.

EXAMPLE:

http://wwww.mydomain.com

If you regularly use http://mydomain.com and on your host the contents are in the mydomain folder you are not correctly pointing google. Instead you are pointing google to a subdomian FOLDER called www inside your mydomain folder.

My solution:

I just went to google analytics and trashed my property http://www.mydomain.com and today will create a new property http://mydomain.com

After I do that then I will deal with the issue of code insertion.

Will post my final outcome. Thanks
Reply
Marith Premium
Thanks for the info, I think mine is working, it show visits, but will do some extra checking, keep me updated
Reply
Top