Wordpress + Google Analytics = Pulling My Hair Out
-
Hey Mozzers,
Quick question for you-
I have analytics set-up for a personal site I run and I know, verifiably it's receiving traffic, however, whenever I access my Google Analytics dashboard, it says I've had zero visits.
Interestingly, today I had a colleague check the site from a foreign country and I could see the page views (within 15 minutes), however, I could not get any information about the site viewer.
I have verified that the Analytics profile is 'receiving data' (which it is) and my Google Webmaster Tools is not reporting any issues?
Finally, I went ahead and updated my profile so that it is pulling from 'www.mydomain.com' instead of 'mydomain.com', I don't know if that'll make any difference, but likewise, I didn't want to go and create the 'little kid in the elevator' analogy, where I'm just pressing a bunch of buttons just because they're there.
So the only changes I've made thus far were deactivating Yoast's SEO plug-in and manually placing the GA code in the header and updating the 'Website's URL' in the profile settings tab of GA from 'mydomain.com' to 'www.mydomain.com'.
With that, I am stumped and praying another one of the esteemed Mozzers out there may be able to help me resolve this. Any thoughts?
-
You'll definitely want to have the non-www version 301 redirecting to the www version, otherwise you're inviting ranking issues with the search engines.
Done correctly, you shouldn't encounter any 404s as a result, and there's nothing needed to do as far as "re-writes to update all the site pages URLs". That's precisely what the 301 redirect is designed to handle.
That said, if you have created links on your own website that point to the non-www version (in navigation or in post content for example) it would be a good idea to change them to what's called the Fully Qualified Domain Name or FQN. 301 redirects are suspected not to pass absolutely all their link juice through, so it's best to link directly to what you've decided will be the FQN for your site - i.e. the www.yoursite.com version.
Does the traffic seem to be flowing into Analytics now as expected?
Paul
-
Paul,
The non-www version was not 301 redirected, however, when I updated the 'default URL' in the property settings from 'mydomain.com' to 'www.mydomain.com' I started seeing traffic stats again for that profile.
I previously re-wrote the .htaccess file to redirect accordingly, however, was having problems finding pages on my site after I implemented the changes.
Even though I can see the traffic stats now, do you think I should still try and implement the redirect? Likewise, would implementing the 301 create navigation problems (i.e. 404s, pages not being found) if I don't implement some sort of dynamic URL re-writes to update all the site pages URLs?
-
Another thought - if you had set the domain's URL as website.com, but in fact nearly all traffic was going to www.website.com and you didn't have a 301 redirect in place to point the non-www version to the www version, that could cause the data issue as well, I think.
Was the non-www version 301 redirected to the www version?
Paul
-
Have you checked to see if you have any filters or custom segments running in the Analytics profile? This really sounds like a filter is distorting/blocking the data.
Try creating a clean profile of the website in the same account and see if it records data.
Also, when checking, keep in mind the GA is typically 24 hrs behind when reporting data (except for the Real Time section of course)
Paul
-
Oleg,
Thanks for getting back to me, I am using the asynchronous code and changing the date range, but it didn't help. Nevertheless, thank you for your suggestion!
-
Make sure you are using the asynchronous analytics code. Once you've added it to the site, view the source and make sure it appears exactly as you input it. Make sure you select today's date in the analytics range (default is yesterday).
-
What do you mean by 'putting the code on'? I would be happy to send you an example, just tell me what you'd like me to include in that?
-
hmm, pretty strange - you can always test it by putting the code on, and then viewing it in real time - you should see visits happening, especially if you open the site in a different browser.
You can send through an example and I'll be happy to take a look.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How accurate is Google analytics at measuring traffic? (Free version)
Hi Guys. When we compare our actual sales to Google analytics conversions it can be way out. Sometimes as much as 50%. Is this the same for the data on traffic? And if so, does the data tend to be out by a similar amount over time? i.e) If we compare this year and last year it give us a good indicator of differences in traffic volume? (albeit not 100% accurate?) Thanks. Isaac.
Reporting & Analytics | | isaac6630 -
Apple.com showing in Google Analytics "My Top Active Pages" - Why?
Hi Mozzers This has more than likely been asked before but my searches have left me empty handed so I have asked on here ( sorry! ) Please see attached screenshot, do you have any idea why apple.com is showing in my top pages? I'm just curious more than anything as this isn't the first time I've noticed it. Anybody know? Happy Friday people, cheers Jamie CiTCA5b.png
Reporting & Analytics | | SanjidaKazi1 -
Google Analytics Organic Accuracy?
Hi, On a cool summers day, I was quenching my thirst for SEO Knowledge in the depths of Google analytics, When I stumbled upon a most troublesome sight. I was Browsing the data inside Acquisition->Keywords->Organic and comparing them to Acquisition->Search Engine Optimization->Landing Pages, to find the results quite questionable.. Since Keywords->Organic measure the visits from the organic results, and Search Engine Optimization->Landing Pages measures the clicks onto one of my landing pages from Google, I assumed they should be the same or very close, (besides Keywords->Organic having visits from other search engines) but they were not the same, as a matter of fact it was telling me that Keywords->Organic visits = 1,474, 27.19% of total(5,422) and Search Engine Optimization->Landing Pages, clicks = 1,548 154.80% of total (1000). Even worst the Search Engine Optimization -> Queries clicks = 1,123, 160.43% of total(700). I have been searching, and come up empty handed in the answer so does anyone know why Google is showing me different results and strange numbers that don't make sense? Any information is greatly appreciated?
Reporting & Analytics | | KBB_Digital0 -
Google Analytics Showing Inflated Product Revenue
Hi- For the month of Feb on two of our sites we are seeing inflated product revenues. I have not seen this before and I am not having any luck searching for answers. Here is the issue: Product B sells for $159.95 For the month of Feb we sold 3 thus revenue should be ~$479.85 GA is showing Product B's revenue at $3,360.00 I read online that sometimes folks will bookmark the receipt page and that can cause this and we would need to put a catch in place for this but I am guessing this is not the case as it is happening on two sites. Please let me know if you have any questions.
Reporting & Analytics | | K2_Sports0 -
Google Analytics Title tag vs landing page visitors numbers
Hi folks, Just wondering if anyone has any ideas as to why im getting different results in Google analytics. I'm using the Content Efficiency Analysis Report from http://www.kaushik.net which is absolutely awesome. When I search via my title tag I get 920 Unique Visitors over the month but when I search via the landing page URL with the same title tag I get 28. Any ideas to why their should be such a difference. I've also noticed that on that page i'm also getting a Rel Cononical TRUE using a site crawl. Any ideas are much appreciated
Reporting & Analytics | | acs1110 -
Setting up Google Analytics default URL
If someone has set: the default url in Google Analytics to a non-www address (http://mysite.com) then placed the UA tracking script from that GA account within the CMS framework of the website... ... and then set the permanent 301 redirect in the htaccess file to redirect to the www address (http://www.mysite.com). How less accurrate will my GA analytics measurements be considering the default url within GA is non-www and the permanent 301 redirect in htacess is to the www-address? Anyone know how reliable GA reports are until the default url in GA analytics is changed to match what is the redirected url in htaccess file? _Cindy
Reporting & Analytics | | CeCeBar0 -
How Can I Record .zip Traffic in Google Analytics
The company I am with shows traffic coming in to .zip files in Google Analytics. The traffic being recorded stopped a while back, but I know people are still downloading/visiting these .zip ULRs. I'm not sure how they were recording/tracking the .zip URLs (in Analytics) before, but I'd like to track them once again. Does anyone know how to do this? Thanks
Reporting & Analytics | | poolguy0 -
Why is Webmaster Tools not Linking Correctly Google Analytics?
I have a global site with .com as the US site and then /country for all other markets i.e. .com/uk .com/de etc. Each site has it's own WMT profile. Each site has it's own GA profile. Since Google added Search Engine Optimization to the GA interface, I can't track these sites separately under this new feature. It seems to me that it can only be associated with a single WMT profile at a time or rather that WMT can only be associated with a single GA profile at a time. The numbers for the UK and US site are identical, but when I try and link the UK WMT account with GA it removes it from the US profile and vice versa.
Reporting & Analytics | | Red_Mud_Rookie0