Many of our clients host marketing videos, recorded webinars, or other video content on YouTube. It’s simplicity and dominance in the online video space make it the de facto standard for many marketers.
No Marketo integration with YouTube's standard embed code
Despite its ease of use, however, many Marketo practitioners have been frustrated that they have no visibility from within Marketo to leads’ interactions with their YouTube video content. For this one feature, many marketers utilize video hosting solutions like VidYard to get video interaction information into Marketo.
But there is another way, and it is much easier on your budget.
Our team at Digital Pi has developed and refined a simple script that you can include—for free!—in your Marketo landing pages to embed a YouTube video and get key video interaction data back into Marketo. This data can then be used to change program statuses, increase leads’ behavior scores, or anything else that can be added to a workflow in Marketo.
One of the key features of the script is that you can see which leads reached self-defined video to milestones.
Example scenario: let’s say you have a product demo video and a corresponding Marketo program based on your Product Marketing channel.
- When a known lead views the landing page, her program status is set to Member.
- When she views 50% of the video, that milestone is logged and triggers a program status change to Interested.
- When she views 100% of the video, the program status changes to Engaged.
- At this point, you could have the landing page generate a modal popup with a Marketo form to request a free sample kit, because you know she is likely ready to try it out.
A simple demo
In this post on our blog, there is an example video that demonstrates this functionality. The video image below is linked directly to it. Below the example video is a log that shows what information is sent to Marketo. Feel free to play and pause the video to watch what happens as the information is logged. As you watch the video, look for milestones to automatically show up in the log at 25%, 50% and 75% completion.
By the way, this all works on both Android and iOS mobile devices too. I recommend testing on all platforms.
The YouTube tracking script
Here is the script: Digital Pi’s YouTube tracking script for Marketo
To use the script, you will need to make a few changes to your Marketo landing page template(s) where you want to use the video functionality:
- Include this script just before the closing
(I recommend saving the script to your computer, uploading it to Marketo’s Design Studio, then changing the above URL to reflect your Marketo-hosted version.)
- Place this code snippet where you want the video to appear:
<div id="digitalpi-yt-player" data-youtube-id="XXXXXXXXXX"></div>
XXXXXXXXXXto your YouTube video ID, from the YouTube URL
Accessing video tracking info in Marketo
Okay, so the video is tracked. How can you, the savvy Marketo practitioner, access this information and use it in your marketing? There are several things you need to know.
- In Marketo, these YouTube video interactions are logged as
- Regardless of which page the request originated on, the page URL is always the same:
- This tracking works even on anonymous leads--before they submit their name or email address.
Here is how the video interactions show up as lead activities.
In a smart list, you could use a filter for all leads that reached the 25-percent-watched milestone.
Or you could use the same parameters in a trigger.
Finally, to trigger a status change or scoring increase when a lead finishes watching a video, you can search for a query string containing
Look at the demo video's log to get an idea of what parameters are available for your Marketo filters and triggers. Remember, you can use as much or as little of the query string to get as specific or general as you want depending on how much or how little of it you include. Here are some query strings from the example above and ideas on how you could possibly use them:
|Query String Parameters||Interpretation & Use Case|
|Watched a specific video to the end. Use to set program status to Engaged or equivalent success step.|
|Watched any tracked YouTube video on your site to the end. Use to increase Behavior Score in your global scoring program. This may also be a good opportunity to log an Interesting Moment for Sales.|
|Watched at least half of a specific video. Use to set program status to Interested or equivalent pre-success step. Possibly use to increase Behavior Score.|
|Watched at least half of any tracked YouTube video on your site. Use to increase Behavior Score.|
|Started watching any tracked YouTube video on your site. Use to increase Behavior Score.|
Configure the YouTube tracking script and player settings
By default, this video player will log milestones when a known lead watches 25%, 50% or 75% of the video, but these can be changed to suit your needs.
In addition to Marketo tracking, this script also empowers you to overcome some of YouTube’s default embedded YouTube video player’s other limitations and settings:
- The video player will scale responsively for tablet or mobile devices.
- The player’s controls and video title are hidden by default.
- “Related” videos will not display at the end of the video.
Any of these options can be changed in the script itself, including the percentages for the milestones.
Have questions, suggestions for improvements or requests for specific features? Let us know in the comments below this post on our blog.