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!
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'
});
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.
It'll work fine. We use synthetic clicks like this in many scenarios.
Okay, thank you!