Skip to main content
All CollectionsCustom EventsImplementing SalesWings Custom Events in Google Tag Manager
How to track YouTube video activities in SalesWings with Google Tag Manager? πŸ“½
How to track YouTube video activities in SalesWings with Google Tag Manager? πŸ“½

This article will help you set up Google Tag Manager to track activities from YouTube videos on your website.

Pauline from SalesWings avatar
Written by Pauline from SalesWings
Updated over a week ago

Ever wondered if people are watching videos on your website? If so, which one, and for how long? πŸ“½

Watching videos can be a strong buying signal from your prospects (ie. "Prospect X watched your demo video twice, and started watching a customer case study video) and you will want to track and score these events in your SalesWings cockpit.

In this article, we are going to show you how to set up Google Tag Manager to track video activities from YouTube. If you are hosting your videos on Vimeo, head to this article.

1) Track YouTube activities with Google Tag Manager

First of all, it is good to note that Google Tag Manager has built-in support for YouTube videos. This will facilitate the entire process.

  • Step 1: Enable built-in variables

In this step, go to Variables and enable all of the video variables as below.

  • Step 2: Create a trigger

Now, you need to set up a "YouTube Video" trigger. You can choose what to track. In below example, we are tracking the progress of the video, but you could decide to also track "Start" & "Complete". For the progress, we suggest entering "50,75" in the percentages fields. This will track prospects who watch 50% of your video, and 75% of your video. Enable "Add JavaScript API support to all YouTube videos”. Name your trigger (ie "SW - Video Watching"), and save.

  • Step 3: Create a tag

We are now going to set the tag that will fire to your SalesWings cockpit.

Set up a tag "SalesWings - Custom Event - Video Watched".

If you don't already see "SalesWings Custom Event" in your tag type gallery. Simply look for it by clicking on "Discover more tags types in the Community Template Gallery".

You are now ready to set up the tag as below:

This tag will allow you to see what video was viewed, for how long, and where on your website.

  • Step 4: Test the tag and Publish

Now, enable the β€œPreview and debug” mode in Google Tag Manager and make sure the tag is firing properly. If so, you can publish the Google Tag Manager changes and head to section 3 to set up scoring and tagging in your SalesWings cockpit! πŸŽ‰

3) Set up tags and scoring in SalesWings cockpit based on video custom events

Now for the fun part, head to your SalesWings cockpit because it is time to set up tags and scoring based on video activities. πŸš€

Here are a couple of examples of how you can tag video activities.

Remember to use emojis in tags name to help when filtering tags type.

Did this answer your question?