# Using link click counter to count YouTube Onebox play?

**URL:** https://meta.discourse.org/t/using-link-click-counter-to-count-youtube-onebox-play/29944
**Category:** Feature
**Tags:** click-counter
**Created:** [Junho 12, 2015, 8:02pm UTC](https://meta.discourse.org/t/using-link-click-counter-to-count-youtube-onebox-play/29944 "2015-06-12T20:02:08Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [Junho 12, 2015, 8:02pm UTC](https://meta.discourse.org/t/using-link-click-counter-to-count-youtube-onebox-play/29944/1 "2015-06-12T20:02:09Z")

</div>

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](https://www.youtube.com/watch?v=siMFORx8uO8)

Which embeds as:  
 ![](https://global.discourse-cdn.com/meta/original/3X/2/2/2270a7c982fce9aa1f357974da8c5ec17fa5a906.png)

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:  
 ![](https://global.discourse-cdn.com/meta/original/3X/e/b/ebb204cb48595d03b3e694f7fb31716a08365434.png)

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

---

_[View the full topic](https://meta.discourse.org/t/using-link-click-counter-to-count-youtube-onebox-play/29944)._
