{"id":117126,"date":"2025-03-07T05:44:11","date_gmt":"2025-03-07T05:44:11","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/the-youtube-video-trigger-in-google-tag-manager\/"},"modified":"2025-03-07T05:44:11","modified_gmt":"2025-03-07T05:44:11","slug":"the-youtube-video-trigger-in-google-tag-manager","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=117126","title":{"rendered":"The YouTube Video Trigger In Google Tag Manager"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<blockquote>\n<p><strong>Last updated 20 April 2020<\/strong>: Clarified how <a href=\"#track-lazy-loaded--dynamically-inserted-videos\">lazy-loaded videos<\/a> can be tracked with this trigger.<\/p>\n<\/blockquote>\n<p>Let\u2019s cut straight to the chase. <a href=\"https:\/\/tagmanager.google.com\/\">Google Tag Manager<\/a> has just released the <strong>YouTube Video<\/strong> trigger, which gives you native support for YouTube video tracking. And it\u2019s great! Even though we\u2019ve been more than satisfied with the excellent tracking scripts provided by e.g. <a href=\"http:\/\/www.cardinalpath.com\/youtube-video-tracking-with-gtm-and-ua-a-step-by-step-guide\/\">Cardinal Path<\/a> and <a href=\"https:\/\/www.bounteous.com\/labs\/recipes\/youtube-tracking\/\">Bounteous<\/a> (with a <a href=\"https:\/\/www.simoahava.com\/analytics\/track-dynamically-loaded-youtube-videos-in-google-tag-manager\/\">small modification<\/a> from yours truly), this is a <em>no-brainer<\/em> for native support in Google Tag Manager.<\/p>\n<div style=\"aspect-ratio: 1790 \/ 1118;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/09\/youtube-video-trigger-google-tag-manager.jpg\" title=\"YouTube Video Trigger\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1118\" width=\"1790\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/09\/youtube-video-trigger-google-tag-manager.jpg#ZgotmplZ\" alt=\"YouTube Video Trigger\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>The YouTube Video trigger checks pretty much all the boxes I\u2019d expect in a video tracking trigger. It has built-in events for things like Start, Progress (e.g. 25%, 50%, 75%), and Complete. You can also use it to decorate the embedded YouTube URLs with the required <code>enablejsapi=1<\/code> query parameter, if they don\u2019t already have it.<\/p>\n<p>The YouTube Video trigger supports tracking <em>lazy-loaded<\/em> or dynamically inserted videos, too, which will be a relief to sites that defer loading videos until they are actually interacted with by the user.<\/p>\n<p>                <span class=\"simmer\"><br \/>\n  <span class=\"close\">X<\/span><\/p>\n<p>\n    <span class=\"fa fa-md fa-bell\"\/><br \/>\n    <strong>The Simmer Newsletter<\/strong>\n  <\/p>\n<p>\n    Subscribe to the <a href=\"https:\/\/www.simoahava.com\/newsletter\/\">Simmer newsletter<\/a> to get the latest news and content from Simo Ahava into your email inbox!\n  <\/p>\n<p>  <\/span><\/p>\n<h2 id=\"create-and-configure-the-trigger\">Create and configure the trigger<\/h2>\n<p>To create the trigger, scroll to Triggers in the Google Tag Manager user interface, and create a new trigger. You\u2019ll find the YouTube Video option in the sidebar that flies out when you click to choose a trigger type.<\/p>\n<div style=\"aspect-ratio: 2854 \/ 1536;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/09\/youtube-video-trigger-type.jpg\" title=\"Youtube Video Trigger selection\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1536\" width=\"2854\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/09\/youtube-video-trigger-type.jpg#ZgotmplZ\" alt=\"Youtube Video Trigger selection\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Once you\u2019ve selected the YouTube Video trigger type, it\u2019s time to configure it. Here are the options.<\/p>\n<ol>\n<li>\n<p><strong>Capture &#8211; Start<\/strong> &#8211; collects a <code>start<\/code> when the user starts watching the video.<\/p>\n<\/li>\n<li>\n<p><strong>Capture &#8211; Complete<\/strong> &#8211; collects a <code>complete<\/code> when the user reaches the end of the video.<\/p>\n<\/li>\n<li>\n<p><strong>Capture &#8211; Pause, Seeking, and Buffering<\/strong> &#8211; collects a <code>pause<\/code> when the user pauses the video or jumps forward or back, and <code>buffering<\/code> when the video starts buffering due to lack of bandwith.<\/p>\n<\/li>\n<li>\n<p><strong>Capture &#8211; Progress<\/strong> &#8211; collects a <code>progress<\/code> the moment the user passes either a percentage or time threshold (e.g. 25%, 50%, 75% or 10 second mark, 30 second mark, one minute mark).<\/p>\n<\/li>\n<li>\n<p><strong>Advanced &#8211; Add JavaScript API support to all videos<\/strong> &#8211; if your YouTube embeds lack the necessary <code>enablejsapi=1<\/code> parameter, you can check this to automatically add it to all your videos. <strong>NOTE!<\/strong> This reloads the iframe, so users might see the video flicker when they first load the page. This option, when checked, also adds the required <code>https:\/\/www.youtube.com\/iframe_api<\/code> library to the page.<\/p>\n<\/li>\n<\/ol>\n<p>Here\u2019s what the <code>dataLayer<\/code> payload looks like whenever a YouTube event is triggered.<\/p>\n<ul>\n<li>\n<p><code>event: 'gtm.video'<\/code> &#8211; the event name pushed into <code>dataLayer<\/code> for all YouTube video events. This is what fires your YouTube trigger.<\/p>\n<\/li>\n<li>\n<p><code>gtm.videoProvider: 'youtube'<\/code> &#8211; specifies the platform whose videos you are tracking. You can take this as a hint that support for other platforms is planned!<\/p>\n<\/li>\n<li>\n<p><code>gtm.videoStatus: 'start'<\/code> &#8211; specifies the status of the video that caused the event to trigger. These different status values are only triggered if you\u2019ve enabled them in the trigger settings. Possible values are <code>'start'<\/code>, <code>'complete'<\/code>, <code>'pause'<\/code>, <code>'buffering'<\/code>, and <code>'progress'<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>gtm.videoUrl: 'https:\/\/www.youtube.com\/watch?v=...'<\/code> &#8211; the original URL of the embedded video.<\/p>\n<\/li>\n<li>\n<p><code>gtm.videoTitle: 'Best of Simo Ahava'<\/code> &#8211; the title of the embedded video.<\/p>\n<\/li>\n<li>\n<p><code>gtm.videoDuration: 197<\/code> &#8211; the total length of the video in seconds.<\/p>\n<\/li>\n<li>\n<p><code>gtm.videoCurrentTime: 30<\/code> &#8211; the time mark where the user is at when the video event happened.<\/p>\n<\/li>\n<li>\n<p><code>gtm.videoElapsedTime: 10<\/code> &#8211; the time elapsed since the last time the video was paused or buffering.<\/p>\n<\/li>\n<li>\n<p><code>gtm.videoPercent: 15<\/code> &#8211; the percentage mark where the user is at when the video event happened.<\/p>\n<\/li>\n<li>\n<p><code>gtm.videoVisible: true<\/code> &#8211; either <code>true<\/code> or <code>false<\/code>, depending on whether or not the video was visible in the browser viewport when the video event happened.<\/p>\n<\/li>\n<\/ul>\n<p>One thing that might make you breathe easier is that there are new <strong>Built-in Variables<\/strong> for all these items in the <code>dataLayer<\/code>. You can find them by clicking the red <strong>CONFIGURE<\/strong> button when browsing to Variables \/ Built-In Variables in the Google Tag Manager user interface.<\/p>\n<div style=\"aspect-ratio: 2154 \/ 988;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/09\/youtube-video-built-in-variables.jpg\" title=\"YouTube Video built-in variables\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"988\" width=\"2154\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/09\/youtube-video-built-in-variables.jpg#ZgotmplZ\" alt=\"YouTube Video built-in variables\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h3 id=\"quick-word-about-progress-tracking\">Quick word about progress tracking<\/h3>\n<p>Do note that tracking <strong>progress<\/strong> is relative to the entire video length and not the actual time or percentage you\u2019ve been watching the video.<\/p>\n<p>So if you configure the trigger to fire at 25%, 50%, and 75%, it will fire those events when the user reaches the respective marks in the video timeline <em>even if they haven\u2019t watched continuously from the beginning<\/em>. Thus, if you start playing a video and jump straight to the 25% mark, the event will fire even though you only just started watching.<\/p>\n<p>The same applies to the time thresholds.<\/p>\n<p>You can leverage the <strong>Video Elapsed Time<\/strong> variable to see how long the user has been continuously watching the video since the last pause. Using the time and percentage thresholds only tells you if the user reached a specific milestone in the video, not necessarily if they actually watched all the way to that point. It\u2019s a small but potentially significant difference.<\/p>\n<h2 id=\"putting-it-all-together\">Putting it all together<\/h2>\n<p>Since there are so many combinations of events you can collect with the YouTube Video trigger, I\u2019ll show a fairly generic way of measuring <strong>start<\/strong>, <strong>pause<\/strong>, <strong>percentage progress<\/strong> and <strong>complete<\/strong> events with just one Universal Analytics Event tag. The tag looks like this:<\/p>\n<div style=\"aspect-ratio: 680 \/ 1202;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/09\/youtube-event.jpg\" title=\"YouTube video event tag\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1202\" width=\"680\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/09\/youtube-event.jpg#ZgotmplZ\" alt=\"YouTube video event tag\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>The trigger that fires this tag looks like this:<\/p>\n<div style=\"aspect-ratio: 804 \/ 1110;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/09\/youtube-event-trigger.jpg\" title=\"Youtube Event trigger\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1110\" width=\"804\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/09\/youtube-event-trigger.jpg#ZgotmplZ\" alt=\"Youtube Event trigger\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>And the <strong>Custom JavaScript Variable<\/strong> named <strong>{{JS &#8211; Get video action}}<\/strong> looks like this:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\"><span style=\"color:#00a\">function<\/span>() {\n  <span style=\"color:#00a\">var<\/span> status = {{Video Status}};\n  <span style=\"color:#00a\">switch<\/span> (status) {\n    <span style=\"color:#00a\">case<\/span> <span style=\"color:#a50\">'start'<\/span>:\n      <span style=\"color:#00a\">return<\/span> <span style=\"color:#a50\">'Start playing'<\/span>;\n    <span style=\"color:#00a\">case<\/span> <span style=\"color:#a50\">'pause'<\/span>:\n      <span style=\"color:#00a\">return<\/span> <span style=\"color:#a50\">'Pause'<\/span>;\n    <span style=\"color:#00a\">case<\/span> <span style=\"color:#a50\">'buffering'<\/span>:\n      <span style=\"color:#00a\">return<\/span> <span style=\"color:#a50\">'Buffering'<\/span>;\n    <span style=\"color:#00a\">case<\/span> <span style=\"color:#a50\">'progress'<\/span>:\n      <span style=\"color:#00a\">return<\/span> <span style=\"color:#a50\">'Reached '<\/span> + {{Video Percent}} + <span style=\"color:#a50\">'%'<\/span>;\n    <span style=\"color:#00a\">case<\/span> <span style=\"color:#a50\">'complete'<\/span>:\n      <span style=\"color:#00a\">return<\/span> <span style=\"color:#a50\">'Reached the end'<\/span>;\n  }\n}\n<\/code><\/pre>\n<\/div>\n<p>This translates the default parameter values of the video object in <code>dataLayer<\/code> to a more readable format. Thus we can use the same Event tag for all video events.<\/p>\n<h2 id=\"track-lazy-loaded--dynamically-inserted-videos\">Track lazy-loaded \/ dynamically inserted videos<\/h2>\n<p>If your videos load during the initial page load, then everything is smooth sailing for you. By checking the <strong>Add JavaScript API support to all videos<\/strong> option, GTM will take care of initializing the videos so that they can be tracked by the trigger. This option also downloads the required API library for you (see below).<\/p>\n<p>However, more and more sites are performance-wary these days, and they defer loading any embedded content until the user has intimated that they want to watch the video. You can read about the technical implications <a href=\"https:\/\/webdesign.tutsplus.com\/tutorials\/how-to-lazy-load-embedded-youtube-videos--cms-26743\">here<\/a>.<\/p>\n<p>Luckily, the YouTube Video trigger does support tracking videos that are loaded and embedded after the initial page load. The only thing you need to do is make sure that when the page first loads, the YouTube iframe API is loaded as well:<\/p>\n<p>So if your site does lazy-load or otherwise dynamically load videos (e.g. if it\u2019s a single-page app), make sure that the library above is loaded before GTM\u2019s video trigger is initialized. A \u201cPage View\u201d trigger usually does the job.<\/p>\n<p>Again, if there is a YouTube embed video present during the initial page load, you don\u2019t have to worry about this. The <strong>Add JavaScript API support to all videos<\/strong> takes care of loading this library for you.<\/p>\n<h2 id=\"the-youtube-trigger-does-not-work\">The YouTube trigger does not work<\/h2>\n<p>If for some reason the trigger isn\u2019t tracking your YouTube embeds, you can use the following method to investigate the issue.<\/p>\n<ol>\n<li>\n<p>Check that the site has loaded the <code>https:\/\/www.youtube.com\/iframe_api<\/code> library.<\/p>\n<\/li>\n<li>\n<p>Check that the YouTube iframes have the <code>enablejsapi=1<\/code> parameter in the <code>src<\/code> attribute.<\/p>\n<\/li>\n<li>\n<p>Check that the YouTube iframes have a parameter that looks like <code>data-gtm-yt-inspected-XXXXXX<\/code>.<\/p>\n<\/li>\n<\/ol>\n<p>If all three check out, it typically means that something on the site <strong>reloads<\/strong> the iframe after GTM has inspected it. When Google Tag Manager initializes the video trigger, it initializes the listener on the embed. Any reload of the embed removes this listener, and because the iframe has the <code>data-gtm-yt-inspected-XXXXXX<\/code> attribute, GTM doesn\u2019t re-evaluate the listener.<\/p>\n<p>Talk to the devs and make sure the iframes are not \u201crecycled\u201d (same iframe element used for multiple videos), and that once the iframe has been added to the site, it\u2019s not reloaded for any reason.<\/p>\n<h2 id=\"summary\">Summary<\/h2>\n<p>I\u2019m quite happy with the YouTube Video trigger. It does pretty much all I\u2019d expect from the first iteration of the feature. I hope we\u2019ll see support for other video services and players in the future.<\/p>\n<p>There\u2019s not a lot I miss. Mainly, I\u2019d like for there to be a <code>gtm.videoTotalElapsedTime<\/code>, which would measure how much <em>in total<\/em> I\u2019ve been watching any given video. The <code>gtm.videoElapsedTime<\/code> only tells me the elapsed time since the last pause\/buffer\/seek, but not what the total time watched has been.<\/p>\n<p>What do you think of the YouTube Video trigger? Is it just perfect for your tracking needs, or do you have features in mind you\u2019d want to see in a future release?<\/p>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Last updated 20 April 2020: Clarified how lazy-loaded videos can be tracked with this trigger. Let\u2019s cut straight to the chase. Google Tag Manager has just released the YouTube Video trigger, which gives you native support for YouTube video tracking. And it\u2019s great! Even though we\u2019ve been more than satisfied with the excellent tracking scripts [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":117127,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[1531,14495,1791,22089,1236,14285],"dealstore":[],"offerexpiration":[],"class_list":["post-117126","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-google","tag-manager","tag-tag","tag-trigger","tag-video","tag-youtube"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The YouTube Video Trigger In Google Tag Manager - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=117126\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The YouTube Video Trigger In Google Tag Manager - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"Last updated 20 April 2020: Clarified how lazy-loaded videos can be tracked with this trigger. Let\u2019s cut straight to the chase. Google Tag Manager has just released the YouTube Video trigger, which gives you native support for YouTube video tracking. And it\u2019s great! Even though we\u2019ve been more than satisfied with the excellent tracking scripts [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=117126\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-07T05:44:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/youtube-video-trigger-google-tag-manager.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1790\" \/>\n\t<meta property=\"og:image:height\" content=\"1118\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=117126#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=117126\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"The YouTube Video Trigger In Google Tag Manager\",\"datePublished\":\"2025-03-07T05:44:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=117126\"},\"wordCount\":1385,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=117126#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/youtube-video-trigger-google-tag-manager.jpg\",\"keywords\":[\"Google\",\"Manager\",\"TAG\",\"Trigger\",\"Video\",\"YouTube\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=117126#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=117126\",\"url\":\"https:\/\/fivemor.com\/?p=117126\",\"name\":\"The YouTube Video Trigger In Google Tag Manager - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=117126#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=117126#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/youtube-video-trigger-google-tag-manager.jpg\",\"datePublished\":\"2025-03-07T05:44:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=117126#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=117126\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=117126#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/youtube-video-trigger-google-tag-manager.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/youtube-video-trigger-google-tag-manager.jpg\",\"width\":1790,\"height\":1118},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=117126#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The YouTube Video Trigger In Google Tag Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The YouTube Video Trigger In Google Tag Manager - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=117126","og_locale":"en_US","og_type":"article","og_title":"The YouTube Video Trigger In Google Tag Manager - Som2ny Network","og_description":"Last updated 20 April 2020: Clarified how lazy-loaded videos can be tracked with this trigger. Let\u2019s cut straight to the chase. Google Tag Manager has just released the YouTube Video trigger, which gives you native support for YouTube video tracking. And it\u2019s great! Even though we\u2019ve been more than satisfied with the excellent tracking scripts [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=117126","og_site_name":"Som2ny Network","article_published_time":"2025-03-07T05:44:11+00:00","og_image":[{"width":1790,"height":1118,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/youtube-video-trigger-google-tag-manager.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=117126#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=117126"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"The YouTube Video Trigger In Google Tag Manager","datePublished":"2025-03-07T05:44:11+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=117126"},"wordCount":1385,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=117126#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/youtube-video-trigger-google-tag-manager.jpg","keywords":["Google","Manager","TAG","Trigger","Video","YouTube"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=117126#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=117126","url":"https:\/\/fivemor.com\/?p=117126","name":"The YouTube Video Trigger In Google Tag Manager - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=117126#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=117126#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/youtube-video-trigger-google-tag-manager.jpg","datePublished":"2025-03-07T05:44:11+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=117126#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=117126"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=117126#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/youtube-video-trigger-google-tag-manager.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/youtube-video-trigger-google-tag-manager.jpg","width":1790,"height":1118},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=117126#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"The YouTube Video Trigger In Google Tag Manager"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/117126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117126"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/117126\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/117127"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=117126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=117126"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=117126"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=117126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}