Not able to get Google analytics real time data - google-analytics

I am not able to get Analytics Real time Data. I have added tracking script to header.php file of wordpress, still it is showing 0 active users, even though I have opened the site in two devices.

When did you create the Google Analytics profile? It can take up to 72 hours to start recording data.
When did you add the JS to your website? it can take up to 24 hours to be detected.

It is working now. Some chrome extension was blocking js code. I uninstalled all chrome extensions working fine now.
Thanks :)

Related

AMP Pages not getting tracked in Analytics

We converted our two modules into an AMP and everything was going good all pages were getting tracked in Analytics, but suddenly from yesterday(23-Jan-2018) around 9.30am EST AMP pages are not getting tracked in Analytics.
We are using GTM script to track our pages and it placed correctly.
Ads Impression was increased yesterday, but total page views is less.
Even i have checked webmaster tool and we do not have any issues
Please let me know what can be done to bring it back
Thank you
The error is came from amp-analytics. That PR is rolled back and everything will fine soon. But not now, the error is still here.
Issue on Github: https://github.com/ampproject/amphtml/issues/13005
Update
Everything is OK now. This error is not only affect Analytics. but also all of your code in GTM for AMP stopped working for 23 hours. That's long long day.

Can I get website analytics for past couple of days?

Is there any way to obtain information for website analytics for the past two days if I don't have a plugin or anything like that already?
Google AdSense would help if you have inserted its script inside webpage. Another solution would be to look after traffic usage provided by hosting company.

How is Google Analytics providing data for my site without the JS code?

I signed up for Google Analytics a couple months ago, but have yet to actually set up the JS snippet on my site.
Today I logged into the dashboard and I see tons of tracking data already in there.
I'm trying to figure out how Google is gathering user data on my site when I haven't even hooked up the code yet.
Also, I see a handful of hits to completely random paths on my domain (mostly foreign). Stuff like www.mysite.com/www.somepornsite.com and I'm just curious why a bot would even bother trying to hit a full domain as a subpath. Or even why my site's getting hit at all (it's completely behind HTTPAuth at the moment), but I suppose that's inevitable.
Thanks for any insight.
I had the same problem a couple of months ago, it turned oud that a bot got my script and did malicious things with it. I got my self a new Analytics code and it did the trick for me.
This will probably also work for you although it it weird that they got your script without even having it published yet.

Google Analytics code not working on Wordpress site

We have a Wordpress site that has been running GA code fine for years. We noticed recently it had stopped reporting and that GA reports the code is not installed. The code is clearly there in the page source - I have tried sticking it directly into the code in the head and in the footer, I have tried using the theme to insert it and thirdparty plug-ins - nothing works.
I have tried changing the theme to the standard WP theme, I have tried turning off plug-ins one at a time (might try turning all off at once tonight!). I have tried removing the .htaccess file.
It feels like something is blocking it but can't figure out what.
Looking at the date of when it stopped working I think it is around the time we upgraded the PHP version of the server but not sure how this would have affected it and there are other Wordpress installs on the same server that are still collecting GA data perfectly happily!
Any advice welcome this is driving me insane now! Site can be viewed here: goo.gl/UO6deJ - Sorry if this has already been covered but everything else I read seemed to be related to plugins not functioning as they should.
As #Fazz mentioned, you have two instances of the same code which would duplicate all your data and skew your results. Also, you can check your Real-Time reports to see if you are tracking your own visits simultaneously. If you can see hits in your RT reports, then likely your tracking code is good. You can also install Google Tag Assistant to help diagnose any other issues with your tracking code.
Can you check to see if you were migrated from classic GA to UA? Usually you should wait 48 hours from initial installation before seeing data in your standard reports (but you should still see data in RT).

Why is Google Analytics In-Page Analytics telling me that the tracking code isn't installed when it clearly is?

I see this problem pop up in a lot of places and asking on Google's product support forums was no help at all, so I turn to you guys. My client has asked me to look into this problem with their In-Page Analytics reporting which turns up the errors:
Your site doesn't load ga.js from Google. If you host the Google
tracking code on your own servers, it isn't updated automatically and
can miss important changes.
We didn't find a tracking snippet on your site. In-Page Analytics
cannot load. Please make sure you have tracking installed correctly.
If your snippet is included in a separate JavaScript file, you'll
have to manually check it is being loaded correctly.
Both of these statements are false. To ensure that it wasn't my original setup that was the problem I installed Yoast's GA plugin (it's a wordpress site) and I still get this error. I've also confirmed that the tracking ID is correct. All other metrics are being reported in GA. This in-page section, however, is the problem.
This is the website, by the way. Any help you have to offer would be greatly appreciated.
http://stoppredatorygambling.org/
How long has it been since the first hit to the property/view? In my experience it takes anywhere from several hours to up to 2 days for that message to go away.

Resources