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
-
Unsolved Google Analytics (GA4) recommendations for SEO analysis?
Guides on Moz and elsewhere mostly refer to Google Analytics' Universal Analytics (UA). However, UA is being replaced with GA4, and the interface, options, and reporting are very different. Can you recommend a clear, thorough, and effective walkthrough of how to set up useful SEO reports in GA4? Is there a simple tool you recommend that will help connect historical data from UA to GA4 when GA4 is the only option available? If there's no simple tool, what values do you recommend retaining from UA for effective historical reporting? How would you use them? At minimum for reporting, I'd want to show month-to-month changes and year-to-year changes (in percentages and in real numbers) for the following: all site visits all organic visits organic visits as a percentage of all site visits organic visits that led to a specific goal completion organic visits that led to any goal completion Thanks in advance for your help!
Reporting & Analytics | | Kevin_P1 -
"Display" referrals on google analytics
We have just had 200+ visits on the 'Display' channel within 5 minutes - these referrals are from all over the world and this is very out the ordinary for our business - should we be concerned? 9cHllwW
Reporting & Analytics | | RayflexGroup0 -
Google Analytics is treating my blog like all the content is just on the home page.
Hello all, I installed Google Analytics on a main website and a blog (blog.travelexinsurance.com) While it appears to be tracking correctly (and when I test it in real time it shows that I'm visiting) but it is treating the entire blog as though it's one page. So I can't see data on blog post X. All I see is that X visitors came to my blog in aggregate. So I see blog.travelex.com has 999 visitors, but it doesn't show that /travel-luggage got 50 visits, while /insurace-tips got 75 and so forth. I assume I screwed up the tracking somehow, but can't figure out where I went wrong. Tracking on the main domain works just fine. It's specific to the blog.
Reporting & Analytics | | Patrick_G0 -
How to setup Google Analytic goals that go to different urls?
I would like to setup my form's conversion rate as a goal in my Google Analytics account. The goal is complete when someone enters their information and hits submit. Logically, the "Thank you page" would be the destination url for the goal. My problem is that the thank you page is outside of the primary domain, for example, my site is: SiteExampl.com but the Thank you URL is thankyouurl.com Is it possible to setup a goal like this? If so how. Thanks in advance!
Reporting & Analytics | | christinarule0 -
Where to find "Keywords that Sent Organic Search Visits" in Google Analytics?
Hi everyone, Tried searching for this answer but couldn't find it. In the new analytics, I can see that there is a graph that shows the number of unique keywords that brought traffic to our site sorted by weeks. I can't seem to find this data in Google Analytics. I can only find the number of visits but not sorted by how many keywords, instead it is just # of visits from all of the keywords. Thanks in advance. SZ
Reporting & Analytics | | swzhai0 -
Google Analytics - Intelligence Custom Alerts
When you add an intelligence custom alert does it look at the history and backdate issues? I've added a few custom alerts, even basic ones like my homepage gets 5 views, create an alert. I either need to wait a day or something is going wrong. Cheers.
Reporting & Analytics | | Seaward-Group0 -
Tracking Referring Sources - Google Analytics - Ecommerce
I need some help from anyone that has deal with this issue before.. We are currently running BigCommerce for the shopping cart on chinamist.com. We have enabled e-commerce tracking through Google Analytics and the revenue tracks perfectly. The only issue is that the referring sources are not tracking directly to the revenue being displayed - for the source, all analytics shows is (none). The assumption is that the tracking issue is a result of having a domain and subdomain.. but 'domain and subdomain' was selected when setting up the sites' advanced analytics script. Does anyone have any tips? We've run into a dead end here.. One final note, we're running an Adwords campaign which is showing conversions through the Adwords side of reporting. After integrating the Adwords and Analytics accounts, the analaytics account is still not showing revenue/conversions from Adwords as a source. Appreciate the feedback.
Reporting & Analytics | | Investis_Digital0 -
Whats the best way to separate Google Shopping from regular organic traffic in analytics?
whats the best way to separate Google Shopping from regular organic traffic in analytics?
Reporting & Analytics | | DavidKonigsberg0