Why don't I see page view data in Google Analytics? - google-analytics

I took the code from the google-analytics website and put it right before the closing body tag like the instructions say to do and changed the xxxxx-x value from the profile page in the code.
I uploaded the new index file and refreshed the page a few times and have yet to get a single hit on it and I'm kind of curious as to why this might be? Any ideas?

You won't see analytics data in realtime. Google is working towards that, but there is a lag in showing traffic:
See this Google Help page:
http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=450ae99d8e40bfaf&hl=en
"Hi, Google Analytics has a current time lag for standard tracking of about 1-2 hours - so it's almost real-time (do you really want to check your analytics data every 10 minutes?). Switch to the current day in your calender and refer to the hourly reports - for example the Visitors/Visitor Trending/Visits/Graph by Hour report - to verify that."

Related

Google Tag Manager click event tracking working but not displaying anywhere

I have successfully created a GTM trigger and tag using the click_text parameter. When I preview and when I published the change both were successful in showing up on my Google Analytics 4 debug and real time tabs. I cannot seem to find a recorded total for this new tag trigger in either GTM or GA4 anywhere. Does this exist in either of these, or do I need to create an event in GA4 unrelated to what I set up in GTM. I have read most of Google's provided documentation on this specific step and it stops flat at this step of things.
Thank you in advance.
If you see your event in real time data report in GA, you're good. The data is in that property. It, however, is not yet available for aggregation, so you won't be able to count them or use them in other reports.
You should wait up to two days for the data to be in the non-real time reports. Vast majority of the data will be available for aggregation in one day, however. Some starts showing up in hours. GA 360 (paid version of GA) shortens the two days to four hours until all data is there.
I'd also suggest using Adswerve plugin for GA debugging: it will print all DataLayer changes as well as everything that is being sent to GA in the console. It's much more comfortable than using real time hits report and it will show you all dimensions that are being sent to GA.

Google Analytics - have active user but missing info

Environment: injected Google Analytics tracking in my SharePoint Online site - all good.
Now I have been clicking pages for more than an hour and wanted to check results. I see that tracking is working (see screenshot) - at that moment there was one active user (me) and have >30 page views in a 30min time window.
Problem: reports (user and page view count) seem to be empty, but I assume that there should be at least one user and multiple page view information. Is that correct or I am misusing Google Analytics?
Update:
Pressed "Refresh Report" and Google fetched new data. Unfortunately, nothing changed and data still is empty.
This report was generated on 12/04/2019 at 16:17:25
The time of when the report was generated is not reflective of how "fresh" the data is. For the free version of GA, there is no SLA and it can take upwards of 2 days, but generally under 24 hours. https://support.google.com/analytics/answer/7084038?hl=en
Seeing the user in realtime doesn't mean the data for the reports are updated. You need to be patient and wait.
If you're seeing data in the real time reports then the standard reports should populate. This can take time though in my experience the latency is usually less than 1 hour. Are you looking at the standard reports in an entirely unfiltered view - might be worth checking to see if any filters are impacting your data though they should effect the real time reports as well.

How can I pull data from Google Analytics to see the top pages visited from the current page?

I would like to create a small sidebar on each page of my website that contains related/popular pages with perhaps the top five pages users visit after reading the current page.
I could track and record user movements across the site myself and build the list that way, but as my site already uses Google Analytics and I know the data is there I'd rather access that if all possible.
The trouble is that I don't have the faintest idea whether it is possible or not.
Remember that the Google Analytics Reporting API is not real-time it can take between 24 - 48 hours for the data to finish processing and be in the API for you to request.
The Realtime Google Analytics api is real time but the data is only about 5 minutes old and its very limited to the dimensions and metrics you can request.
Quota, with either of those APIs you are limited to 10,000 requests per day per profile / view. I have no idea how many pages there are on your site or how may users are on your site but this could quickly blow out this NON extendable quota.
Options: Except that its not realtime data and use the reporting api every night run a request against the api get everything for two days ago then show your users on your site data that's two days old. Store the data in the database then you are showing them data on in your DB and wont have an issue with the quota as you only requested it once.
But this isn't exactly what you want as its not showing a users activity over the site. TBH I am not sure you can exactly use Google Analytics to track a user as the data is user non specific.
If you don't want to get involved with learning the API and develop this from the ground up, check out EmbeddedAnalytics (disclaimer: I created the service). We could provide such a widget.
You may find This Article useful. It provides the necessary query to find the "next page visited" using the page of interest as a filter. Ultimately your query would look like this:
https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3Aabc&start-date=30daysAgo&end-date=yesterday&metrics=ga%3Apageviews&dimensions=ga%3ApreviousPagePath%2Cga%3AnextPagePath&sort=-ga%3Apageviews&filters=ga%3ApreviousPagePath%3D%40pricing
The query above will give you the "Next Page" along with pageviews assuming the "previous" page contains the word "pricing".
We could easily build such report widget for you:
You would insert a javascript source code snippet into your page. The javascript would pass the page url to our server and we would return the next "most popular pages visited".
The pages could be "linkified" so that someone could click the link to go to that page.
We already have caching mechanism in place. So each pageview would not require a new query to google (making it quicker and also staying away from the API quota that was mentioned above). For pages that are hardly ever looked at (e.g. less than once a week), we could make "on-demand" calls to get the statistics.
In my experience with the API, the lag in the API is only a couple hours. It may be longer for larger sites.
Please let me know if you are interested in such widget and I can work with you.

Sakai google analytics - real time not working

I've been playing with the new google analytics feature:
https://jira.sakaiproject.org/browse/SAK-25634
...and can happily report it definitely does work, albeit with one caveat, I can't get the real time dashboard to work. I know sometimes with new google analytics accounts it can take time for both the data to filter through and the real time to start to work, however, I have had my account for many weeks now and data is indeed filtering through but the real time dashboard stubbornly refuses to work.
My hunch is it's a timezone problem and the reason why it's not showing is because the timestamps on the analytics data from my sakai instance differs from my timezone set on the dashboard (therefore the data is sent but the real time dashboard does not display the data as it sees it being 6-7 hours in the future/past, for example) but I haven't played with this yet. Does anyone know how to fix this problem?
p.s. +1 for universal analytics! https://jira.sakaiproject.org/browse/SAK-28052
EDIT: I discovered there's a timezone setting in the preferences of the sakai app (accessed using your browser), as well as a "server" time displayed in the footer, both are using the correct time, so perhaps it's not that??
I set this up anayltics to test on https://qa10.longsight.com and with the sample properties on that jira it didn't work. I changed the domain to just the domain and I did get realtime stats.
For example the following did NOT work
portal.google.analytics_domain=https://qa10.longsight.com
But this did
portal.google.analytics_domain=qa10.longsight.com
This is the result from viewing it in two browsers.

Google Analytics reports wrong goal completions and events count

I have this GA-tracked application that is not counting all my events and goal conversions. Events are correctly displayed in the Real-Time chart, but the reports apparently discard some of them. My goal completion counts are being incorrectly reported, too - for example, in a given day my user registration goal displayed less than 20 goal completions but I had almost 100 new users.
I am using Universal Analytics and my pageview count is still low compared to the GA threshold.
Any thoughts?
I also found few bugs and especially some events not firing properly. Hence, I move to old code again. Even in old code,” doubleclick.js” code not working for some Event Tracking. After I replace the code with old” ga.js” file all the event functions start to work without any modifications to the source code. Please stick with the old code for next few months.
Just check Avinash website (http://www.kaushik.net) , as we all know he is the digital marketing evangelist for Google. He is still using the old ga.js code. This tells that this new Universal Analytics code have some hidden bugs and they are testing the code with user experience. Hence this is not the time to fully depend on Universal Analytics. Sooner they will come up with updates and then it will be ok to move to Universal Analytics.

Resources