– How to track Youtube and Vimeo videos in Google Analytics and Google Data Studio via Google Tag Manager

Page Meta Tags

viewport width=device-width, initial-scale=1.0
twitter:card summary_large_image
twitter:description If you are using videos on your website, you have probably asked yourself many times if users are actually watching your videos and if they do, how much of the video do they watch? Luckily, … Continue reading
twitter:title How to track Youtube and Vimeo videos in Google Analytics and Google Data Studio via Google Tag Manager
twitter:site @Analytics_Help
twitter:creator @Analytics_Help

Page Headers

0 HTTP/1.1 200 OK
Date Fri, 06 Nov 2020 04:49:28 GMT
Server Apache
Upgrade h2,h2c
Connection Upgrade, close
Last-Modified Fri, 06 Nov 2020 03:34:16 GMT
Accept-Ranges bytes
Content-Length 234078
Vary Accept-Encoding
Cache-Control max-age=0, no-cache, no-store, must-revalidate
Pragma no-cache
Expires Mon, 29 Oct 1923 20:30:00 GMT
Content-Type text/html; charset=UTF-8

Keyword Frequency

you 85
vimeo 76
video 72
if 56
google 48
it 47
tag 44
can 38
we 38
says 36

Keyword Cloud

How to track Youtube and Vimeo videos in Google Analytics Data Studio via Tag Manager Toggle navigation Home Why us we can help Examples Blog Get touch Victor February Comments Tweet Pin Share If you are using on your website have probably asked yourself many times if users actually watching they do how much of the video watch Luckily with some work get this tracking up running start collecting data And later use that create visually appealing charts which easier read interpret than reports from a move for both shareholders clients will thank Table contents Implementing Enabling built-in variables Creating trigger tag Testing implementation triggers tags Reporting Tracking strong Since has support is really easy consists enabling few creating one The first thing enable so Variables menu by clicking Configure button right side need Video Status Title Percent variable After Triggers YouTube type Start Complete Progress Add JavaScript API all options enabled For option enter percentages field as shown image below saving actual send events Tags should click New select Universal Track set Event In category action earlier while label choose our GA settings Settings add Interaction created save With be ready after Preview debug mode GTM test it works everything working correctly see Real Time report Because does not offer integration like implementing little bit harder but still follows same process Pro tip want install faster instead manually import container already You download here unzip file then upload JSON When importing make sure Merge containers way keep previous place follow steps otherwise skip current uses videoAction videoName Custom Javascript Is Present values value dataLayer checks present page returns true or false To Layer Variable Name attributes name next similar only difference being third paste code there function presence an embedded more return var e document getElementsByTagName quot iframe x lt length https player vimeo com src p Pageview Player DOM Ready vimeoTrack solution custom HTML interaction listener event sends copy script gt window config ‘use strict’ won’t LT IE bail detect those UAs navigator userAgent match MSIE gi cleanConfig handle getHandler syntax readyState ‘loading’ init else addEventListener ‘DOMContentLoaded’ Watch new iframes popping ‘load’ filter selectAllTags ‘iframe’ isVimeo loadApi forEach listenTo el indexOf ‘player callback isUndefined loadScript ‘https api js’ vimeoTracked eventNameDict ‘Play’ ‘play’ ‘Pause’ ‘pause’ ‘Watch End’ ‘ended’ cache getVideoTitle title key ‘timeupdate’ evt percentage percent amp extend each every ‘each’ ‘every’ setting vals isArray map Number points concat val n i push reduce prev curr gtmGlobal ‘dataLayer’ uaGlobal GoogleAnalyticsObject ‘ga’ clGlobal gaq’ handlers ‘gtm’ state ‘vimeoTrack’ ‘cl’ trackEvent’ ‘Videos’ ‘ua’ ‘send’ ‘event’ switch case break q arguments l Date default args slice call dst shift o Array Object prototype toString object arr fn newArr ind result typeof ‘undefined’ querySelectorAll join f s ‘script’ createElement onload callCallback async parentNode insertBefore null ‘events’ ‘percentages’ Configuration Details property Defines emitted turned into configurations viewed String Fires once ahs been reached Forces ‘ul’ Classic defaults auto-detection string THIS IS USUALLY UNNECESSARY Optionally instantiate command queue question Useful library tracked fire before loaded Be careful you’re Only v Created consultants at http www lunametrics Written notdanwilkerson Documentation github vimeo-google-analytics Licensed under MIT License As firing chose cHTML Listener step give such remained preview refresh go pages where when publish changes take reporting level pivot table show was played until end Handpicked related content Tutorial Template dashboard impress Facebook Ads stakeholders Assuming connected Insert top Pivot This blank Next Label Row dimension Action Column Metric Total Events user friendly ABC dimensions rename them watched By order include panel scroll down filters section condition Category equals contains also adding look Adding site hard takes lot time involves makes prone errors That why implemented best let expert Leave reply Anthony Gaenzle says pm great article Very helpful guide looking views their isn t necessarily most intuitive platform comprehensive clearer out become bookmarked resources marketers space It important understand expensive least time-consuming Understanding fine-tune ROI Reply Peter Good tutorial I finally got wondering whether my visitors James Tried worked Thanks March modify doesn play pause Pause Seeking Buffering But am multiple clicks Have tried embed different Correct clicked any pauses So no everytime may line Great possible initial Unfortunately either disable completely leave unique total analyzing taken account May Hi Business Premium No Gary followed recommended well embeds EXCEPT Livestream Playlist recognizes fired Does something url format Please advise might We never tested Gotcha malika June Thank sharing information Steven downloaded uploaded don Anything missing Can check configured ID matches id sent Also ad-blockers block July able other properly google analytics Where put ad blocker just mean personal browser -Steven Yes Alternatively correct could consistent across Just forget Enable overriding blockers yes ad-blocker testing Disabling did trick me part aren live stream livestream would these Any thoughts made automatically plays opened Rasmus September had m URL titles very d built Do know too re welcome since requested customized codepen io pen rNeJWKq called videoURL tests added videoTitle feel free contact P S Although helping readers finding request took From exploring various etc find useful kind favor maybe newer articles understanding Hans Interesting piece interesting setup viewContent FB pixel retargeting people idea existing ViewContent parameter Here example ignore statement positive sometimes used Daniel publishing going try away back Sherry goals GA-Event-Vimeo what fields linking Ad Grant effective ads advance Absolutely goal Admin Goals Goal There Played Play Olaf Draeger October thanks making effort detailed step-by-step guides problem getting though standard metrics required deleting merge-imported pasting ticked main unticked again words sorry hear about issue listens interactions explains following things Florian Wow immediately explain glad assuming initialized Videos fbq ‘trackCustom’ ‘Vimeo Videos’ Greats Works perfect Henrik javascript JS always Dom delay further assistance matter please post Group member community ll Cancel choosing comment mind comments moderated email address NOT published keywords Let’s meaningful conversation Email Website Comment nbsp Notify replies e-mail notified discussion generates emails daily subscription paused AnalyticsHelp Popular Recent Categories Content Marketing Visualization Optimize Automation Search Console team lucky found amazing Without manage marketing scripts They significantly improved efficacy activities Robert Paige Resources Legal Terms Conditions Privacy Policy Copyright cookies ensure experience Find Statement Got Overview Strictly Necessary Cookies Powered GDPR plugin provide Cookie stored performs functions recognising sections preferences cookie means visit All Save