![]() Vimeo_playerAuthorURL: _playerAuthorURL.toLowerCase(), Vimeo_playerAuthor: _playerAuthor.toLowerCase(), Vimeo_playerTitle: _playerTitle.toLowerCase(), Var player=document.getElementsByTagName("iframe") ĮventAction: "vimeo video " +t*100+ "% Complete",ĮventLabel: _playerTitle.toLowerCase() + " - " + getLabel(ayer_id), In the Input Variable field enter the.In GTM, go to Variables > New > Lookup table and enter the following settings: To do that, we will create a lookup variable table in GTM that will return a particular output based on the Youtube video interaction. We also will send the percentage of a watched video, e.g. 25%) we want to send not only the word “progress”. ![]() But if the visitor has watched a certain amount of a video (e.g.If a visitor starts or completes a video, we want to send the word “start” or “complete” to Google Analytics.In Google Tag Manager, go to Variables > Configure and enable all video-related variables. Īlso, even though the Add JavaScript API support to all Youtube videos is an Advanced setting, I enable it by default because it increases the change that Youtube video tracking will work. Personally, I prefer tracking Start, Complete, and Progress (e.g. Also, you can enable Pause, Seeking, and Buffering tracking. You can change the Percentage threshold to anything you like, just separate them with a comma. In Google Tag Manager, go to Triggers > New > Trigger Configuration and choose Youtube Video. Here are the steps you need to complete in order to track Youtube videos with Google Tag Manager. Download it, import, configure (according to instructions) and it will automatically start tracking Youtube videos on your website in no time.īut if you want to understand the ins and outs of the Youtube video tracking, then continue reading. If you are in a hurry, I have created a ready-made Youtube video tracking recipe. How to track Youtube videos with Google Tag Manager That’s Vimeo.Īnd finally, I’ll also give you some ready-made solutions (recipes) designed for various embedded video players.Ĭhapter 1. Then, I’ll show you an example with a video player that is not supported by GTM by default. All Unified.įirst, we’ll take a look at the most common video tracking example in Google Tag Manager: Youtube video trigger. Six Google Tag Manager Video Tracking Recipes.Create Data Layer Variables and Custom Event Trigger Create a variable “Is Vimeo player present on a page” ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |