Using link click counter to count YouTube Onebox play?

AI-generated summary

Using link click counter to count YouTube Onebox play

The discussion revolves around the idea of counting the number of times a YouTube onebox embed is clicked on (“played”) in Discourse. DeanMarkTaylor proposes this feature, suggesting that both clicks on the play button and the title link should be counted. A simple mockup is provided to illustrate the concept.

DeanMarkTaylor believes this feature would be a good indicator of engagement, despite not being an exact count of plays. codinghorror asks techapj to look into the feasibility of implementing this feature, noting that the Onebox being an external gem might complicate matters.

(ccdw)(/t/-/29944/4) shares a related video on tracking embedded YouTube videos with Google Tag Manager, which allows for monitoring events such as play, pause, and video completion.

However, sam points out that implementing this feature is complicated and might not be worth it since most people play videos inline. WaitroseCarpark expresses support for the feature, highlighting its usefulness in indicating popular or unpopular content when users share links instead of properly embedding videos.

It would be nice to see the number of times a YouTube onebox embed had been clicked on (“played”).

Considering that YouTube onebox embeds in Discourse are just simple links.

e.g.
https://www.youtube.com/watch?v=siMFORx8uO8

Which embeds as:

Note the title of the video is actually a link and if clicked goes to YouTube.
I believe both of the following should be counted:

  • Clicking the Play button in the centre
  • Clicking the Title link

A simple mock up would be:

Although this wouldn’t be the actual count of plays and people might replay etc. it would be a good indicator.

5개의 좋아요

Sure @techapj can you look into how difficult this would be? Not sure if Oneboxer being an external gem (I kind of regret this tbh) complicates matters.

1개의 좋아요

Just got the “Good Share” badge for this post.

Shared a post with 300 unique visitors

With only 3 likes - it makes me think people are coming here for other reasons than this feature though.

I’m still very interested in this feature.

1개의 좋아요

I like your idea a lot.

Related: I looked at Google tag manager recently and saw the following;

Published on 8 Sep 2015In this weeks video we’ll look at how to track Embedded YouTube Videos with Google Tag Manager. We can do this by implementing a custom HTML tag which listens for the interactions on the video. This allows us to monitor events such as a user only watching 25% or 75% of the video, as well as how many times they hit play or pause. We can then visualise this data in Google Analytics. Please see our first link if you want the written tutorial used in the video, enjoy!

1개의 좋아요

This is fairly complicated and quite minor since majority of people just play inline. count of plays would be way more interesting but that is even more complicated.

4개의 좋아요

이 기능에 +1을 누른다는 의미로 댓글을 남깁니다.

사람들이 임베드를 잘못 설정하고 동영상 링크만 남기는 경우가 있는데, 이때 숫자가 크게 달라지곤 합니다. 미리보기만 볼 수 있다면 이 숫자는 인기 있는 콘텐츠와 그렇지 않은 콘텐츠를 구분하는 데 매우 좋은 지표가 되는데, 그런 정보가 사라지게 됩니다.

1개의 좋아요