I am working on a video listing website which uses JW Player and its plugins. Embed code of the video can be placed anywhere in the web but we need to track which video plays in which site and its count of views and plays.
We are using Google Analytics Pro plugin for JW Player to track the traffic. But is there any way for me to track the report to
See all the sites that the player is embedded on to see how many people played the video from that site
How many plays are done for each video from from these sites
Exactly which videos are played
Currently we are using following code inside JW Player
s1.addVariable('gapro.accountid', 'UA-21590286-1');
//alert(this.data.captions[this.slide])
s1.addVariable("gapro.trackstarts","true");
s1.addVariable("gapro.trackpercentage","true");
s1.addVariable("gapro.tracktime","true");
s1.addVariable("gapro.idstring","||Channel Name||-||Story Name||");
Following is a sample embed code for playing a video..
Thanks in advance for the support.
Best Regards
Deepu S Nath
The JW GA plug-in should report which site is hosting the player in the Hostname parameter.
1/ Check that when you play a video on your player embedded on a site, a GIF request is sent to google-analytics.com :
http://www.google-analytics.com/__utm.gif?
utmwv=4.9.2&utms=2&utmn=1209321314&
utmhn=www.longtailvideo.com&utmt=event&
utme=5(Video%20Plays*http%3A%2F%2Fcontent.longtailvideo.com%2Fvideos%2Fbunny.flv*
http%3A%2F%2Fwww.longtailvideo.com%2Faddons%2Fplugins%2F107%2Fget-examples.html%3Faddon%3D107%26vid%3D292%26q%3D)
(I have truncated the request which should be much longer).
2/ Confirm that the utmhn value reported is the hostname of the site where the player is hosted. It looks like the JW player plug in reports the Video Play as an Event where the Category is Play, Action is the file source URL and Label is the URL where the video is played.
3/ In Google Analytics, look for a report displaying Event Labels by Hostnames (or create it using a custom report). You should use a filter to view only Event Label = "Video Plays".
This should show you how many plays you had from each site. You can use similar reports to view which video were player from each site (using Event Action).
On a final note, I do not think that the JW player is tracking 'Load' events - when the player is loaded, so you won't see if a player was loaded but no video played. You can confirm by checking if a GIF request is sent when the player is loaded.
I just found that there is no direct solution for my requirement using the google pro plugin.. Instead we implemented a custom solution as follows..
Created a custom Tracker which uses the google analytics APIs directly instead of "Google Analytics Pro" plugin. For that I have Utilized the JWplayer API to interact with the video player and get the video related data and it was be passed to the Google Analytics API. Later in the Google Analytics account, created a custom report with the required metrics and dimensions.. This helped me to get all the tracking details and create the required report. :) I really appreciate the support I got from Antoine which helped me to understand some basics and move towards a solution.
I just checked your site and found that the embed code consists of iFrame and this is the reason why you are unable to track the hostname at which the embed video gets played.As you are using iframes in the embed video code, you wont be able to track the site details were the video is embedded. You always get storybridge.tv as the site url. (iFrame do not support cross domain interaction)
To avoid this problem we have to use tag (Similar to old Youtube Embed Code) which will help the plugin to get the details of the site at which video is played.
Related
I just find this
https://github.com/possan/webapi-player-example
And I've been searching for something like this but with an specific playlist in my site
Want I want is:
Login in Spotify like the example( http://lab.possan.se/thirtify )
After that be able to play my music(playlist) like the example in the same tab with Full Length in, not open a new page with spotify player.
I have the Client ID, Client Secret, Redirect URIs.
Is it posible? I have no idea about how to make it
I've been trying with the embed code but when the user login open a new page with the spotify player, I want to redirect to the same page with the playlist.
I hope you can help me.
After that be able to play my music(playlist) like the example in the same tab with Full Length in, not open a new page with spotify player.
Streaming full length tracks over the web is not supported by Spotify's Web API. That's why the example application uses the 30 second audio files. Streaming tracks is however possible using the iOS and Android SDKs.
I'm trying to share text and image on user's google plus stream. This text and image would be set by me. What I'm trying to achieve is, User will login to his google plus account(if not login) and then this text and image will be automatically post to his stream.
I've tried this method for sharing
https://plus.google.com/share?url=https://encrypted-tbn0.gstatic.com/images?q%3Dtbn:ANd9GcRt6YQ8bwQdOVZqTG7wls93F-bwbENvH292Lfx_TBOY9lLYL5X5RhXVRvk&hl=en
It is working fine but I want to execute this using curl or jQuery so that I can set the text and image to the respected fields and submit this at my end.But in this I'm not getting that how is it working because it is not a form.
Please help me how to do this.Please let me know if I can do this with other way.
I've go through these links also but didn't find anything useful.
https://developers.google.com/+/api/
http://www.nextscripts.com/google-plus-automated-posting/
https://developers.google.com/+/web/embedded-post/
http://www.sanwebe.com/2012/11/login-with-google-api-php
https://github.com/google/google-api-php-client
set text to google+ share button
There are two ways to automate posting to Google+. One is app activities which do not show up on Google+ streams and Google Apps users can create posts that are limited to their domain.
Outside of those two options posting to Google+ has to be done with an explicit click by the user on Google owned UI. Interactive posts and the share button are the best options.
As you can see in Official Documentation
Share Endpoint
The share link invokes the Google+ share endpoint, which you can also link to directly:
https://plus.google.com/share
The Google+ share endpoint accepts the following only query parameters:
url The URL of the page to share. This value should be url encoded.
hl The language code for the locale to use on the Google+ sharing page.
So only this is available
https://plus.google.com/share?url=http://www.Google.com
or
https://plus.google.com/share?url=http://www.Google.com&hl=ar
or
https://plus.google.com/share?url=http://www.Google.com&hl=en
The only way to prefill the text of a share is to use Interactive Posts as
You can do that by set of steps as Full Example here
I have hosted some customers videos on YouTube and embedded them into their website. It turns out many of the customers however are in countries that block YouTube or their company blocks YouTube.
I am trying to implement some sort of check (using jQuery/Ajax but any method that works is fine) to check if the users browser can access YouTube, if so load the YouTube version of the video via Ajax, if not load a self-hosted version.
I am fine with loading the different videos, but cant get my head around checking if a users computer can access YouTube, I believe an Ajax call wont work as its cross-domain.
Any help would be much appreciated.
Thanks
Jason
In a PHP system, my client suggested to download videos AND MAINLY captions from YouTube using the following tools:
cclive
gcap
As I have never heard of these before, my question is does anyone have any experience with them? Both projects seem to be inactive for like one year or so... Do they still work?
Is it possible to download captions for any YT video with them? I have stumbled upon some YT API info that the captions are not available for unauthorized users (i.e. you can only get your own captions if you are authorized with the API)?
Caption tracks can only be accessed via the Data API by the authorized owner of a given video.
The official YouTube Players can access caption data, but they use a different mechanism for accessing that data which is not part of a public API.
What I want to do is, to show uploaded videos list of my youtube channel to website's visitors.
Something like that. (Image take from youtube channel, I want to show exactly this way)
Don't want to create iframe. Can I fetch data from channels exact page with PHP or something else? I have no idea if it's possible with youtube api. Any suggestions?
Yes you can. The videos on a channel are essentially a user's so using the YouTube GData API you can make a call to http://gdata.youtube.com/feeds/api/videos?author=ahmednuaman (my videos for example).