Tracking a Lightbox Click/Video

Anonymous
Not applicable

Tracking a Lightbox Click/Video

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','http://www.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!

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Tracking a Lightbox Click/Video

I'm confused. Your onclick listener is logging a custom click to your main page (http://www.starmount.com).  If you want it to log a hit to the video URL, then you have to include that URL (https://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'

});

Anonymous
Not applicable

Re: Tracking a Lightbox Click/Video

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 - Community Moderator

Re: Tracking a Lightbox Click/Video

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

Anonymous
Not applicable

Re: Tracking a Lightbox Click/Video

Okay, thank you!