Lightbox2 and Google Analytics ?
| Project: | Lightbox2 |
| Version: | 6.x-1.9 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi folks,
This is mostly a bit of a feedback, so if you do not consider it as a true feature request then please reclassify it.
I am developing a site which heavily leverages third party materials such as RSS news feeds, Wikipedia and YouTube API. One of my -by design- goals is starting to show signs of biting back. In order to make the portal super scalable, third party materials are being served in a way that tries to minimize load on the portal by transferring lot of the functionality into JS and onto the client.
However, even in development, this is resulting in lots of visitors whom even Google Analytics is consistently showing to be making multiple visits with very small number of page views per visit. What seems to be happening is that when a visitor arrives they end up spending a lot of time reading the news or searching and viewing YouTube that they are being "time out" after 30 minutes - after which the same visitor is being tracked as another visit - without having made too many "page views" in between.
The news fed stories are being displayed in a table of 25 per page and then Lightbox2's lightframe is used to take them to the publisher's site for each of the stories. Technically, each of those page views are not true page views on our site because they are happening on a third party site. However, we could take the visitor to a separate node page and then from there enable them to go to the originating site. However, that seems like a poor UI just to get GA and Alexa.org to see each story that is read as a page view.
So, my basic question is whether the Google Analytics javascript code could not be triggered each and every time that Lightbox2 is brought into view. However, let's start the discussion by analyzing whether that is or is not a true page view?
Thanks.

#1
So, my basic question is whether the Google Analytics javascript code could not be triggered each and every time that Lightbox2 is brought into view.