PierfrancescoSoffritti / android-youtube-player

YouTube Player library for Android and Chromecast, stable and customizable.
https://pierfrancescosoffritti.github.io/android-youtube-player/
MIT License
3.44k stars 765 forks source link

Youtube View count not getting package name #1052

Open indira-15 opened 1 year ago

indira-15 commented 1 year ago

As we are using this library for youtube videos , youtube view counts are increasing in youtube channel but we are not able to track the actual source ,are the view are from app , we are getting as external source . . Can you lets know from where can we add source package name of our app , so it can trigger the actual source.

PierfrancescoSoffritti commented 1 year ago

Hi, I personally don't know the answer to this question. I suggest having a look at YouTube's IFrame API documentation to see if they mention it. Let me know if you find out!

Serkali-sudo commented 1 year ago

I have never used youtube analytics but i dont think it classifies viewers source so spesific. You can't edit the client source someting so spesific . And even if you could youtube servers probably classifies them anyways. So the source probably would be unknown source therefore classified as external source.

The best thing you can do is to create a custom tracking mechanism that monitors views using services like Firebase, etc.

Or if external sources are only the embedded videos (assuming analytics classifies pc,android etc. correctly) you play in your app you could just count external source as views coming from your app.