Track Vimeo Video Engagement In Google Analytics Using Sander Heilbron Script

Published on 26 Mar 2020 / In Website Software & Tools

Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist:

Download our exclusive 10-Point WP Hardening Checklist:
Track Vimeo Video Engagement In Google Analytics Using Sander Heilbron Script | WP Learning Lab

In this tutorial I'm going to show you how to track user interaction with embedded Vimeo videos on your website. The data from the user interaction will go right into your Google Analytics account where you can see the interaction in the Real-Time Reports and in the Behavior section.

The first thing we have to do is upload the javascript file created by Sander Heilbron. Download the file from the URL at the top of this description and then upload it to the root of your website.

Once uploaded, include the file in your website template. You may need to include a reference to jQuery as well, if your site doesn't already load it.

Once those two things are done, then you need a special Vimeo embed code, which you can get from Sander's website as well.

Copy and paste Sander's Vimeo embed code and just replace the Vimeo video ID with your video's ID.

Lastly, you have to make sure that you a Google Analytics implementation on your website. It is best if you use Universal Analytics. If you need help with this, check out this tutorial:

Once you've successfully completed the steps above you will have Vimeo video interaction tracking. The data will go into GA as events. This is one of the best ways to set up your website analytics to make sure that you have data about your visitors.

In the past Google Analytics Event Tracking ga.js was much more complicated.
I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.


If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.

Connect with us:

WP Learning Lab Channel:



Google Plus:


Show more
0 Comments sort Sort By

Up next