Lightbox Gallery Tracking | Community
Skip to main content
craigtarr
Level 2
January 22, 2016
Solved

Lightbox Gallery Tracking

  • January 22, 2016
  • 1 reply
  • 1261 views

s.tl does not feel like the appropriate call to make in a website module that utilizes a lightbox gallery effect. Any suggestions on best practices or pitfalls to avoid? My team will be building a module that houses 15-20 galleries on a site. Each gallery may have 5-30 photos with copy blurb's, social share options, etc. I need to track not only the galleries that are viewed (easily done via s.t() on a page load). But I also need to know what photos were viewed through the lightbox (may be PrettyPhoto or FancyBox). And specifically what photos were shared (easily done via s.tl() as it is a exit link).

 

I have not uncovered an answer to this, if you know of a direct link please share. I know that ListVar and Prop's sound good but I can't picture the most optimum solution.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Amit_Kumar

Create a new var say gallery_images store all values like: <gallery_name>:<image_name1>,<image_name2>...  and update the value on previous or next event in the gallery transition. use s.tl() on gallery close or error and window unload assign this var to a evar/prop and send data to omniture. This will help you in reducing the number of calls to the omniture. You can create some processing rule in analytics to process this evar/prop in the way you want this to work.

1 reply

Amit_Kumar
Amit_KumarAccepted solution
Level 10
January 25, 2016

Create a new var say gallery_images store all values like: <gallery_name>:<image_name1>,<image_name2>...  and update the value on previous or next event in the gallery transition. use s.tl() on gallery close or error and window unload assign this var to a evar/prop and send data to omniture. This will help you in reducing the number of calls to the omniture. You can create some processing rule in analytics to process this evar/prop in the way you want this to work.