googleanalyticsplus
googleanalyticsplus copied to clipboard
Use different time on site
Investigate http://www.billhartzer.com/pages/how-to-fix-google-analytics-to-properly-calculate-bounce-rate/
I don't think that is applicable for magento. We are talking about ecommerce, I read through many articles in that regard. On any ecommerce application you will need users to interact with your site. They will need to add to cart and checkout. So I don't think that should be added. That should be a concern for bloggers.
@rgoytacaz thanks for your feedback. I guess there might still be some usecase for this considering that a site will contain lots of landing pages. If you have a measurement that tells you how well you have written the content (ie how long people stay and read) you have something to optimise. Of course this is only a first step in a long string of mini-conversions.
If you have more than a couple reviews people may sit and read reviews and ponder a purchase. And all without clicking around on your site, especially if Google brought them to the exact item they were looking for. Add in the fact that there are blog and other content based extensions for Magento and I think it is something that could be quite useful.
The code Bill Hartzer links to in his article is from 2011. This was way before tabbed browsing was popular. Even IE has tabbed browsing now, and it's become more and more common for people to leave a tab open and not make their way back to that tab before closing the window. This could make what was really a 30 second visit look like an hour long reading.
The correct way to implement this is to disable these "pings" when the webpage loses focus and re-enable them when it regains focus. This can be done using "window.onblur" and "window.onfocus".
I may also be nitpicking, but isn't every 10 seconds a bit much. 15 or 20 seconds should be more than sufficient. If you're really worried about losing a few seconds you could even fire off one last ping onblur.