track vimeo videos

How to Track Vimeo Videos in Google Analytics (Step-by-Step)

Do you want to know how your Vimeo videos are performing on your website? Vimeo is a popular video platform where you can create, host, and share high-quality media content.

And the best part about Vimeo is that you can embed your videos onto your WordPress website. But how do you know which videos your visitors like the most?

This is where you need to set up tracking for your Vimeo videos.

In this article, we’ll show you how to track Vimeo videos in Google Analytics step-by-step. Let’s get started…

MonsterInsights is the best WordPress Analytics plugin. Get it for free!

Why Should You Track Your Vimeo Videos?

You might wonder, why is it important to track videos on a WordPress site?

By tracking videos, you get a lot of insights into your user’s behavior. For instance, you get to know how many people play, pause, and reload your videos.

This helps find out your most popular videos so that you can create more content around similar topics.

Tracking Vimeo videos also help you see how long someone views a video. Do they watch 25%, 50%, 75%, or watch all the way till 100%.

You can then use this information to optimize your content. You can make your videos more engaging, so people watch until the end.

With that, are you ready to learn how to track Vimeo videos in Google Analytics?

Video Tutorial

How to Set Up Vimeo Video Tracking in Google Analytics

The easiest way of tracking your Vimeo videos in Google Analytics is through Monsterinsights. It’s the best Google Analytics WordPress plugin, and it makes using Analytics so much easier.

You can get your data inside your WordPress dashboard and uncover insights about your visitors. To start, follow these steps.

Step 1: Install MonsterInsights WordPress Plugin

Before you track Vimeo videos, you need to make sure that Google Analytics is properly set up on your website. And with MonsterInsights, it’s a walk in the park.

You don’t have to worry about editing code or to hire a developer. The plugin makes it super simple to set up Analytics.

Not only that, but you also get advanced tracking features like file downloads, eCommerce tracking, form conversions, author tracking, affiliate link clicks, and more.

monsterinsights best analytics plugin for wordpress

Step 2: Add Google Analytics to Your WordPress Site

After installing and activating MonsterInsights, the next thing you’ll need to do is connect Google Analytics with your WordPress website.

Usually, this requires entering a tracking code on your website. But with MonsterInsights, all you have to do is follow its setup wizard, and the plugin will take care of the rest.

For more details, follow our step-by-step guide on how to add Google Analytics to WordPress.

Step 3: Copy the Vimeo Tracking Code

Now that Google Analytics is up and running, you can now enter the Vimeo tracking code to your site.

We’ve created an exclusive tracking snippet for you. Simply copy and paste the code below onto the page with your video:

<script>jQuery( function ( $ ) {
if ( 'undefined' === typeof __gtagTracker ) {

function loadApi( callback ) {
if ( 'undefined' === typeof window.Vimeo ) {
$.getScript( '', callback );
} else {

var videos = $( 'iframe[src*=\'\']' );
if ( videos.length > 0 ) {
loadApi( function () {
videos.each( function () {
trackVideo( this );
} );
} );

function trackVideo( el ) {
if ( el.__vimeoTracked ) {

el.__vimeoTracked = true;
var video = new Vimeo.Player( el );
var percentages = [25, 50, 75];
var events = ['play', 'pause', 'ended'];
var cache = {};
video.getVideoTitle().then( function ( title ) {
$.each( events, function ( key, event ) {
video.on( event, function () {
send( event, title );
} );
} );
video.on( 'timeupdate', function ( evt ) {
var percentage = evt.percent * 100;
var key;
for ( key in percentages ) {
if ( percentage >= percentages[key] && !cache[key] ) {
cache[key] = true;
send( percentages[key] + '%', title );
} );
} );

function send( key, title ) {
__gtagTracker( 'event', key, {
event_category: 'Vimeo',
event_label: title,
} );
} );</script>

One thing to remember is that for this code to work, you’ll need to load jQuery. It’s an open-source JavaScript library that provides easy client-side scripting in HTML.

This means that actions like clicking the play button on a video can be performed without reloading the page.

But if you require a non-jQuery version of the tracking snippet, feel free to reach out to our support team, and we’ll help you out!

Step 4: Enter the Vimeo Tracking Code to Your Website

Once you’ve copied the tracking script, it’s time to add it to your website.

Now, you can enter the code on a specific page where you’ve embedded your Vimeo videos or on your entire website.

This might look complicated and difficult, but it’s not.

We suggest that you use the free WordPress plugin, Insert Headers and Footers. It makes it super easy to insert code on your website while ensuring your tracking works accurately.

To start, go to your WordPress dashboard and navigate to Plugins and then click Add New. Now, in the search bar, enter Insert Headers and Footers and then click Install Now. Wait for a few seconds and then click Activate.

insert headers and footers plugin

Once the plugin is active, go to Settings and then Insert Headers and Footers.

Next, enter the Vimeo tracking code you copied in the previous step and paste it in the Scripts in Header section.

vimeo tracking code insert header and footer

After adding the code, click Save.

Congratulations! You’ve successfully set up Vimeo video tracking in Google Analytics. The next thing to do is see how your videos are performing by looking at the reports.

Step 5: View Your Vimeo Video Reports

Now that your Vimeo Google Analytics tracking is ready, you can view the reports to get insights into your user’s behavior.

And to start, you can look at the real-time report to see how many people are active in your videos. With MonsterInsights, you can see the real-time report in your dashboard and don’t have to leave your website.


For more detailed reports, you can view the Events report in Google Analytics.

To access the report, log in to your Google Analytics account. Then from the options on your left, go to Behavior » Events » Top Events and select Vimeo.

You can then view how many people play, paused, reloaded, and watched your video to 25%, 50%, 75%, or 100%.

vimeo video report in ga

And that’s it!

You can now easily see which videos your audience likes and how you can improve their engagement through tracking.

We hope you liked our article on how to track Vimeo videos in Google Analytics. If you found this post useful, then take a look at our guide on how to track user engagement in WordPress using Google Analytics.

Also, don’t forget to follow us on Twitter and Facebook for more useful WordPress tutorials.

Want to Try MonsterInsights for Free?

Enter the URL of Your WordPress website to install MonsterInsights Lite.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.