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
-
Do I need a separate Google Analytics ID for a subdomain on my website?
Hello Everyone, I would like to know if I need a separate Google Analytics ID for a subdomain on my website? I have a sub-domain within my website, and the software for the site on the subdomain is asking for a Google Analytics ID. Should I be using the same Google Analytics ID as the main domain or should I be creating a new Google Analytics profile or ID? Thanks. Ryan
Reporting & Analytics | | RyanUK0 -
We setup a new Google Analytics account for the new domain but the old one is still there
Hi, Our company has changed their domain almost a year ago and after the migration, they created a new Google Analytics account rather than changing the address on the existing GA account. Now I can still see that Google indexing the old domain. Just wanted to ask if we can still tell Google that we've changed the domain on the old one? Or, should we just go ahead and use the new one and delete the old one? Very confusing, but our traffic is constantly dropping although we rank for on the first page for tracked keywords, just want to understand if there is a connection between the organic traffic droppings and not telling Google we've changed the domain. Thanks! NJt7vbJ
Reporting & Analytics | | Lucidica0 -
Email traffic tracking in Google Analytics
Hello! I have a question about how to assure email traffic is properly tracked in GA > Acquisition > All Traffic > Channels. **First, some background... ** Our company (Wisconsin's largest group dental practice) is about to revamp the way we try to re-capture patients who don't have a future appointment set with us. Part of that process will include emails. Those emails will point back to our website to request an appointment. Now to the question... Is there anything special we should do to assure that links coming to the website and the resulting appointment request goal conversions track appropriately and appear under "Email" in the Default Channel Group of Analytics > Acquisition > All Traffic > Channels area of GA? For example, should we use Campaign URL Builder to establish UTM links? Thanks in advance for any feedback. Erik
Reporting & Analytics | | SmileMoreSEO0 -
All goal conversion in Google analytics showing under referral
Hi All, I have switched my website from http to https After switching from http to https all goal conversions in Google analytics showing under referral.I have also updated the GA code for https. Please help me out to fix the issue. Thanks
Reporting & Analytics | | Alick3000 -
Google Analytics - Adding a sub-domain
Hi I have a google analytics query.
Reporting & Analytics | | Niki_1
I have a main site with a google analytics tag and I have 2 forms that sit on a subdomain with a different GA code. As I would like to measure end to end tracking, I would like the same GA code on the subdomain. What is the best way for me to implement this? Would I need to make some changes to the GA code that sits on the main site or can I add the the GA code from the main site onto the subdomain? Thanks0 -
Google Analytics Site Search to new sub-domain
Hi Mozzers, I'm setting up Google's Site Search on a website. However this isn't for search terms, this will be for people filling in a form and using the POST action to land on a results page. This is similar to what is outlined at http://support.google.com/analytics/bin/answer.py?hl=en&answer=1012264 ('<a class="zippy zippy-collapse">Setting Up Site Search for POST-Based Search Engines').</a> However my approach is different as my results appear on a sub-domain of the top level domain. Eg.. user is on www.domain.com/page.php user fills in form submits user gets taken to results.domain.com/results.php The issue is with the suggested code provided by Google as copied below.. Firstly, I don't use query strings on my results page so I would have to create an artificial page which shouldn't be a problem. But what I don't know is how the tracking will work across a sub-domain without the _gaq.push(['_setDomainName', '.domain.com']); code. Can this be added in? Can I also add Custom Variables? Does anyone have experience of using Site Search across a sub-domain perhaps to track quote form values? Many thanks!
Reporting & Analytics | | panini0 -
Multiple domains to one payment sub-domain in Google Analytics
Hi Mozzers, I have a series of sites (~25) that are all regional e-commerce sites with the same URL structure eg. www.[region]-product.com as well as a 'master' site (eg www.product.com). I also have a single Adwords PPC account which point to all of the regional sites as well as the master site. As part of the payment/checkout process you only ever get taken to a sub domain of the master site (eg payment.product.com). My question is: Is it wise to use the single PPC Adwords account to set up an Analytics account under which I list all of the regional sites and the master site? Once that's done I'm not entirely sure how I can track sales from a regional site to the payment process of the master site and have sales correctly assigned to the right domain. On the payment process I can only use one site ID tracking code so I'm not even sure I can correctly assign a transaction to a single site if multiple sites use the same payment pages. Example: Visit to region-product.com > Quote form submitted to payment.product.com > Payment completed on payment.product.com > Sale is assigned to which domain? Can anyone who understands what I'm trying to achieve comment on the plausibility of this? Many many thanks!
Reporting & Analytics | | panini0 -
Google Analytics - Referral Traffic Question
How Google Analytics determine that some particular web site referred traffic if there is no back link on that site?
Reporting & Analytics | | DiamondJewelryEmpire1