Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Imagine the following scenario.

  1. A visitor has loaded a page, which is a thumbnail gallery. The page has got a Google Analytics script. The links from the thumbnails go directly to images. Simply like so
    <a href=“images/foo.png”><img src=“images/foo_thumbnail.png” /></a> .

  2. The visitor clicks on the thumbnail, and loads a large image. In this scenario, the large version of the image is just a bare image file, so it can’t call an Analytics script by itself.

  3. The visitor clicks the back button and goes back to the thumbnail gallery.

How does Google Analytics track in this scenario? Are there any peculiarities associated with this?

edit:
It would be nice if I could track image clicks. But what I'm really after is accurate tracking of User Flow through the HTML pages. If a foray into an image are not tracked, that's alright, that's not too bad. But If a foray into an image starts a new session for the same visitor, that would be too messy.

share|improve this question
    
I don't think there is anything exactly what you are looking for. The closest thing I can think of is Event Tracking (developers.google.com/analytics/devguides/collection/…), so you can at least see what image links users are clicking. –  user1795832 Jul 29 at 2:08

1 Answer 1

up vote 3 down vote accepted

Interesting question Nick!

As far as I know, in the use case you just described, Google Analytics would treat this as follows -

  • The thumbnail gallery can be tracked
  • The click on the thumbnail can be tracked using event tracking
  • If the user clicks on an image, that would be treated as an exit
  • If the user uses back and comes back within the session timeout (30 min by default), then its the same session, however, its a new pageview
  • If its after the session timeout, then its a new session, with a new entry URL and of course a new pageview
share|improve this answer
    
Come to think of it, I could also open the image link in a separate browser window/tab. –  Nick Alexeev Aug 2 at 2:17
    
Or a modal within the same window? –  Prasad Aug 2 at 6:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.