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
-
Universal Google analytics e-commerce tracking code?
Hi Mozzers, I have never setup a universal google analytics e-commerce tracking code before and my concern is what exactly do I need to add on the cart thank you page? Can someone send me a sample of code I need to be adding? What kind of customization does it require? The more details you can provide the better! Thanks!
Reporting & Analytics | | Ideas-Money-Art0 -
E-commerce data import Google Analytics
Hi there, Since a few weeks we have started a cooperation with a big online wholesale company which now sells our products. I want to import simple E-commerce data: amount of transactions and revenue. More detailed data such as amount of products, name of products, etc. is not necessary in the first place. Now I discovered the 'data import' functionality in Google Analytics but I can't find any suitable option for E-commerce data import. The data from the wholesale company is gathered in a nice export in a separate system, so there should be a way ti import this data into Analytics. Could anybody help me with this? Any advice is welcome! Thanks in advance.
Reporting & Analytics | | MarcelMoz
Marcel0 -
How to track in Google Analytics
Hello, I am helping a client track traffic using Google Analytics. We recently just signed an agreement with a publisher and they have given original credit using a canonical link. How can I track this? I believe it is showing up under direct/ none and I don't know to measure the success of our new partnership.
Reporting & Analytics | | rmazur0 -
Uptick in not tracked conversions / anyone have a list of things that google analytics will not track
There seems to have been an uptick in users on our site not being tracked in Google Analytics cause I see a lot more un-tracked revenue in the last 6 months then I used to. I know analytics is still working as it has been tracking a normal amount of visits but I assumed there might be a reason less would be actually showing up in analytics (mabye a change is what is being reported as organic). I know a lot of stuff goes into "not provided" such as logged in search and stuff like that but is there a list of all of the ones that go into not provided and all that just do not get tracked (javascript not enabled, iOS?). If it could be something else as well let me know. Thanks for the help!
Reporting & Analytics | | Gordian0 -
Showing significant visit in google analytics
Hello Everyone, I was checking GA account of my site and I have found there are few keywords have significant number of visits in GA. These keywords not ranking even in hundred(google SERPs).I am not understanding from where these visitors coming .Please help me out. I am attaching screenshot of those keyword.Last but not least when i check source of these keywords source are google. Thanks aScZ8WT.png
Reporting & Analytics | | Alick3000 -
Image Search Keyword Tracking With Google Analytics
Does anyone know how to track keywords for your images in Google, Yahoo, Bing (/imgres)?
Reporting & Analytics | | Melia0 -
Google Analytics Alternatives
I am getting really fed up with how unreliable Google Analytics data is. Also, because I have several large sites I can't use the goal tracking or conversion funnel reports. What are the best alternatives to Google Analytics?
Reporting & Analytics | | mascotmike0 -
Google Analytics/ Contact 7 Plugin
I have a site that uses the contact 7 plugin for its contact form sitewide in a sidebar and on a contact us page. I've set up a goal in analytics and tracked using the "on_sent_ok" hook but the number of goals GA is creating is far outweighing the number of times the form is actually completed. I figured my initial mistake was to use the contact-us page as the page tracker variable for the goal but wondered if it was counting all form completions AND anyone who went to the contact page. So I amended it to a contact-us/thank-you page that no site visitor could navigate to, and since I have no goals completed, even though we're getting enquiries through the form. Am I being dumb here and missing something quite simple?
Reporting & Analytics | | PerchDigital0