• Skip to primary navigation
  • Skip to main content
  • Skip to footer

Merchant Labs

Helping online merchants succeed is what we do best!

  • About
  • Contact
  • My Account

Google Analytics, Google Tag Manager / April 30, 2017

Google Analytics tracking of YouTube player events

Although this solution is a bit more technical than I would have hoped for two Google products, but hey… Its still free šŸ˜‰

YouTube Tracking In Google Analytics & Google Tag Manager

TheĀ idea is that you have a script to detect whether you even have the right videos on your page, then link up all the js event code to each player if you do find videos. The js event code then fires aĀ gtm event whenever something happens in one of the players.

Here’s a newer version, but pretty much the same thing.

YouTube video tracking via Google Tag Manager

Filed Under: Google Analytics, Google Tag Manager Tagged With: Coding, Javascript

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Footer

Shopify Partner

Let Merchant Labs, with over 15 years experience in ecommerce,Ā help you SUCCEED online! From …

Read More about Shopify Development Services

  • Twitter
  • YouTube

Ajax-Cart Coming Soon

What is Ajax-cart for Shopify? Ajax-cart for Shopify is a big project to bring some of the most wantedĀ features to the Shopify cart page. This page is also known as the basket screen. Its …

more about Ajax-Cart for Shopify

Tags

Apps Script Coding Documentation Javascript MySQL PHP Shopify Liquid

Contact Us

Merchant Labs
Los Angeles, California

P: 424-236-0372
E: [email protected]

Proud Partners For

Copyright © 2025 Ā· Digital Pro on Genesis Framework Ā· WordPress Ā· Log in