Image impressions vrs Google Analytics - google-analytics

can any help?
Currently I have page with an image loading. Every time the image loads I write to a database:
Count = Count +1
I have tested my code by refreshing my page and the image count works correctly (going up by one each time).
Currently the count for this month is over 60,000, however in Google Analytics on that page it shows the pageview as 1800 and the unique pageview even less.
Has anyone any idea why the numbers are so far apart from my count and Google pageview.
How does Google calculate it's pageviews? Are spiders the issue?
Thanks

Google Analytics records data using an image request sent via Javascript -- meaning most bots/spiders won't show up.
I'd suggest taking at look at your server logs. Each image request you're tracking should have a corresponding page request. Maybe your image is being hotlinked?

Related

Why Google analytics AVG Session duration is wrong?

I'm using Google Analytics for tracking my visitors.
In recent days I started to use live support system on my website. I can see on the live support system the time the users spend on the site. Since most of my articles are longer than 1500 words, users spend a lot of time on the site.
The average session time on the live support system is over 10 minutes, but Google Analytics showing it is under 2 minutes.
I know that Google analytics is wrong. What could be the reason for this? Why does Google analytics show average session duration incorrectly?
If an user lands in your page, reads the article and leaves the website without making any interaction that sends an hit to Analytics (for example clicking on a link to change page of your website) the time on page will be 0.
Analytics calculates the average time in page based on the difference between the first and last hits occurred on that page.
Try to send events on scroll to Analytics (example 25%, 50%, ...) and you'll see that the time on page will begin to be representative.
Please refer this link https://www.studentcpu.com/2020/03/google-analytics-important-kpi-monitor.html. you will get answer for your query. In this website it is clearly explain about most of site admin misunderstood between avg session duration time and avg time on page.
Avg Session Duration -Multiple Page Avg Time-Macro view
Avg Time on Page - Single Page Time-Micro view

Google Tag Manager - Tag Firing Way too Many Times

We are having an issue with our tracking on www.x3tradesmen.com where a Google Tag Manager tag is firing way too many times and we cannot determine why...
We only have one website event tag linked to Google Analytics called Form Submit and typically we would receive between 2-10 Form Submit events per day at the most, however, recently we have noticed that the tag is firing 1000's of times sporadically and we cannot pinpoint the issue. We have also noticed that our users have drastically increased for short time periods (minutes/hours). We typically only get 40-80 users per day on our website but we saw a massive spike of around 400 users in less than one hour once.
We recently added the facebook pixel via GTM and that is really the only change that we have made and now we are seeing these issues. Does anyone know of any common reasons to why this would be behaving this way or can anyone see any major issues with our implementation of GA or GTM on our website that would cause this?
I know this information is vague, so please let me know if there is specific information that would help identify the issue.
Thanks in advance!
Screenshot 1
Screenshot 2
Screenshot 3
Screenshot 4
Screenshot 5
I presume it is the FB pixel - Facebook automatically collects information in addition to what you have configured yourself and uses post/submit events to send them. You can disable that behaviour as per documentation and see if it makes a difference:
Automatic Configuration
The Facebook pixel will send button click and
page metadata (such as data structured according to Opengraph or
Schema.org formats) from your website to improve your ads delivery and
measurement and automate your pixel setup. To configure the Facebook
Pixel to not send this additional information, in the Facebook Pixel
Base code, add fbq('set', 'autoConfig', 'false', '')
above the init call.
I had a similar issue where suddenly additional submit events turned up in the GTM preview pane that I finally tracked down to FB, so there is a good chance that yours is the same problem.

Page counter and Google Analytics show different page visits

I have enabled a hit page counter in my website (www.ludhianaweddings.com) to count daily visits. Its an Update SQL query on each and every page that is updated by 1 each time any page is visited. I am also using Google analytics to overview my site. Now i am getting different results in both. For me Hit page counter always show more visits than Google analytics. For example from last three days my hit counter visits are 319, 411, 379. While Google analytics showing 199, 266, 234 in its reports.
I have put my update query on top of the page and Google analytics code after closing body tag. Is it can be a reason for that ??
Sorry to those who will say it off topic as i had no other better option to ask this from expert(s).
Please help me out...Thanks in advance
I doubt that you will ever get your Hit counter to match 100% with Google analytics. There are a lot of things that can cause Google analytics to not log a hit. The first being the user not having JavaScript enabled the second being possibly ad blocker.
There are also referral spam bots which will insert random hits into your Google analytics account directly and bypass your website 100%. In that case your Google analytics will record higher numbers then your hit counter.
It also depends on what metrics you are looking at:
ga:sessions The total number of sessions.
ga:users The total number of users for the requested time period.
ga:pageviews The total number of pageviews for the property.
These are all different numbers and may have different results depending upon how you look at them.
This seems at least vaguely code related, so, not off-topic.
Placing JavaScript code after the closing body tag is technically wrong, although in most cases it will still work.
If anything you would put it before the closing body tag. Even that would not give you the optimum result, as this would not count users that have aborted the loading process before the page was finished.
But at the end of the day Javascript-based tracking will always give you less visits then a serverside solution. Many bots do not execute JavaScript, people can opt-out from tracking and some adblockers block Analytics tags from working. Not really much you can do about it, except trying to figure out if the sample you are catching with javascript tracking is still big enough to allow conclusions based on it (for the moment I'd say yes, usually it is).

Why can't Google Analytics record how long a user spends on your site?

Google Analytics can't tell how long bounce users (users who don't navigate past the landing page) spend on the site. But wouldn't it be possible, at least on desktop, to just record the initial time of the loading of the page, and then use javascript to record each mouse movement, each one replacing the one before, finally getting the time of the last movement, from which you'd subtract the initial load time?
Why can't Google Analytics do something like that?
Please go to Audience - > User Explorer

Google Analytics not generating data

I'm new to Google Analytics. Yesterday, I created an account and I pointed it to our website. I've added the JavaScript codes that Google Analytics generated for us. I put the code on all of our .html files.
I've been hitting our website from outside and so does my officemates since last night and also today. However, when I visited https://www.google.com/analytics under Reporting, everything was showing 0. I don't see any single spike at all.
I would recommend navigating to the Reporting -> Realtime -> Overview tab within your Google Analytics (GA) account. This is an almost realtime view into users on your site. In a separate tab access your site and refresh the page, this page view event should then be visible in the GA Realtime view.
If you can see your page view then its likely that you've inserted the correct GA script into your page and that you've used the correct GA property id. If you cant see your own page view then you will know that your script is incorrectly inserted or your GA property id is incorrect.
Last bit of advice: GA often has a 24-48 delay before you are able to use its full suite of insight tools (such as GA Goals). If you're expecting to see Goals populate immediately you're gonna have a bad time.
Last-last bit of advice: make sure that you select the current date from the date range picker in the top right of the GA Reporting view. It defaults to yesterday.

Resources