Tracking a Lightbox Click/Video | Community
Skip to main content
February 17, 2016
Question

Tracking a Lightbox Click/Video

  • February 17, 2016
  • 1 reply
  • 2067 views

Hello,

My company has been having some trouble trying to track a video on its homepage. We are trying to track if people are clicking on the lightbox to watch the video, but we haven't been able to figure out a solution. Right now this is what the coding on our video looks like:

<a class="intro_video" href="#?video_intro" title="Shopping Made Simple with Starmount" onclick="mktoMunchkinFunction('clickLink','starmount.com')"><img src="/public/upload/images/homebanner/intro-video-2016-cover.jpg">

    </a>

The only thing we have been able to track is if people type in the exact URL for the video, but it won't work if you click on the video/lightbox that brings up that URL. Most viewers won't be typing in that URL so hence, why we are trying to figure out how to track the clicks of the lightbox.

Thank you!

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

1 reply

SanfordWhiteman
Level 10
February 18, 2016

I'm confused. Your onclick listener is logging a custom click to your main page (starmount.com).  If you want it to log a hit to the video URL, then you have to include that URL (s3.amazonaws.com/SM_videos/general/starmount-dress-intro-sm.mp4 ) as the href passed to clickLink.

Munchkin.munchkinFunction('clickLink',{

     href:'/SM_videos/general/starmount-dress-intro-sm.mp4'

});

February 18, 2016

I believe we have tried that in the past but Marketo didn't read the video URL. Would you suggest having the video on Youtube or Vimeo instead of storing it in Amazon?

Thanks.

SanfordWhiteman
Level 10
February 18, 2016

It'll work fine. We use synthetic clicks like this in many scenarios.